From: David Levine Date: Sat, 11 Jan 2014 17:22:50 +0000 (-0600) Subject: Calculate port numbers in test suite based on uid so that different X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/baf775f063150c38bcc2f59c577cef52b94deb5a?hp=91a238750c1cfdf8e58bb02c734d33831f4c1da0 Calculate port numbers in test suite based on uid so that different users can run the test suite on a host simultaneously. --- diff --git a/test/inc/test-pop b/test/inc/test-pop index 01b32a13..960727d6 100755 --- a/test/inc/test-pop +++ b/test/inc/test-pop @@ -24,7 +24,8 @@ setup_test TESTUSER=testuser TESTPASS=testuserpass -testport=65413 +arith_eval 64001 + `id -u` % 1000 +testport=$arith_val HOME="${MH_TEST_DIR}"; export HOME netrc="${HOME}/.netrc" diff --git a/test/post/test-post-common.sh b/test/post/test-post-common.sh index 6767d747..5692cc66 100755 --- a/test/post/test-post-common.sh +++ b/test/post/test-post-common.sh @@ -9,7 +9,8 @@ set -e setup_test -localport=65412 +arith_eval 64000 + `id -u` % 1000 +localport=$arith_val testname="${MH_TEST_DIR}/$$" #