diff options
author | Quincey Koziol <koziol@lbl.gov> | 2022-04-26 16:07:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 16:07:15 (GMT) |
commit | 417ee1393b425d5c7c998562e7fb492e28928643 (patch) | |
tree | d48c7a30907029af36b5b82c81bc0eb7f835082c /test/test_mirror.sh.in | |
parent | 0fffb26c013146cc817ab1c9f2956ad84919a63e (diff) | |
download | hdf5-417ee1393b425d5c7c998562e7fb492e28928643.zip hdf5-417ee1393b425d5c7c998562e7fb492e28928643.tar.gz hdf5-417ee1393b425d5c7c998562e7fb492e28928643.tar.bz2 |
Correct concurrency bugs when running tests, along with a bugfix & small warning cleanup (#1683)
* Correct concurrency bugs when running tests, along with a bugfix & small
warning cleanup.
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/test_mirror.sh.in')
-rw-r--r-- | test/test_mirror.sh.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/test_mirror.sh.in b/test/test_mirror.sh.in index 9713f89..fbc7ede 100644 --- a/test/test_mirror.sh.in +++ b/test/test_mirror.sh.in @@ -22,7 +22,10 @@ nerrors=0 SERVER_VERBOSITY="--verbosity=1" -SERVER_PORT="--port=3000" +# Choose random ephemeral port number +RANDOM_PORT=$[ $RANDOM % 16384 + 49152 ] +echo "Using port: $RANDOM_PORT" +SERVER_PORT="--port=$RANDOM_PORT" ############################################################################### @@ -83,12 +86,15 @@ echo "Launching Mirror Server" SERVER_ARGS="$SERVER_PORT $SERVER_VERBOSITY" ./mirror_server $SERVER_ARGS & -./mirror_vfd +./mirror_vfd $SERVER_PORT nerrors=$? echo "Stopping Mirror Server" ./mirror_server_stop $SERVER_PORT +# Wait for background server process to exit +wait + ############################################################################### ## Report and exit ############################################################################### |