mirror of
https://github.com/ceph/ceph
synced 2025-02-22 02:27:29 +00:00
qa: add simple and dirty script to find ports being used
Seriously, having this is way better than realizing that one needs to find an unused port each time a new test is created. It's far from a perfect script. It's downright not elegant. Signed-off-by: Joao Eduardo Luis <joao@suse.de>
This commit is contained in:
parent
5afd86ff66
commit
0b30a1538a
3
qa/find-used-ports.sh
Executable file
3
qa/find-used-ports.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
git --no-pager grep -n '127.0.0.1:[0-9]\+' | sed -n 's/.*127.0.0.1:\([0-9]\+\).*/\1/p' | sort -n | uniq -u
|
Loading…
Reference in New Issue
Block a user