From: Loic Dachary Date: Thu, 16 Jul 2015 18:32:39 +0000 (+0200) Subject: tests: test/cephtool-test-mon.sh uses 7202 7203 and 7204 X-Git-Tag: v9.1.0~533^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d23cd132a3a7ce6e5bb86c3463ff7fb01142622e;p=ceph.git tests: test/cephtool-test-mon.sh uses 7202 7203 and 7204 When running 3 mons, vstart uses ports starting from CEPH_PORT=7202 and increments to 7203 for the second mon and 7204 for the third. Add a comment showing the port number. The method for a test to figure out which port is free is to grep for the port and if nothing matches, use it. The grep will match 7204 and 7203 and 7202 from the comment and reduce the chances of someone using 7203 because it was nowhere to be found in the sources. Signed-off-by: Loic Dachary --- diff --git a/src/test/cephtool-test-mon.sh b/src/test/cephtool-test-mon.sh index 2194f2d8dd8..d4da5f28b8d 100755 --- a/src/test/cephtool-test-mon.sh +++ b/src/test/cephtool-test-mon.sh @@ -16,6 +16,8 @@ # GNU Library Public License for more details. # CEPH_CLI_TEST_DUP_COMMAND=1 \ +# uses CEPH_PORT going from 7202 7203 and 7204 because +# it starts at 7202 and runs 3 mons (see vstart.sh) MON=3 OSD=3 CEPH_START='mon osd' CEPH_PORT=7202 test/vstart_wrapper.sh \ ../qa/workunits/cephtool/test.sh \ --test-mon \