From: Joao Eduardo Luis Date: Wed, 22 Nov 2017 16:58:34 +0000 (+0000) Subject: qa: add simple and dirty script to find ports being used X-Git-Tag: v13.0.1~118^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F19102%2Fhead;p=ceph.git 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 --- diff --git a/qa/find-used-ports.sh b/qa/find-used-ports.sh new file mode 100755 index 00000000000..c57525cd454 --- /dev/null +++ b/qa/find-used-ports.sh @@ -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