Dropped the trailing 's' for sleep to make it work on MacOS too
This commit is contained in:
parent
39baba327e
commit
bd6b377498
|
|
@ -23,7 +23,7 @@ function startServer()
|
|||
{
|
||||
"$server" "$tcp" --ignoreConfig -I $IMPORTS 2>stderr.txt > stdout.txt &
|
||||
server_pid=$!
|
||||
sleep 1s;
|
||||
sleep 1
|
||||
}
|
||||
|
||||
# Make sure that the server is shut down
|
||||
|
|
@ -33,7 +33,7 @@ echo "Shutting down currently-running server..."
|
|||
|
||||
for socket in unix tcp; do
|
||||
# allow some time for server to shutdown
|
||||
sleep 0.5s;
|
||||
sleep 0.5;
|
||||
|
||||
if [[ $socket == "tcp" ]]; then
|
||||
tcp="--tcp"
|
||||
|
|
@ -54,7 +54,7 @@ for socket in unix tcp; do
|
|||
fi
|
||||
sleepTime=$((1 << $i))
|
||||
echo "Server isn't up yet. Sleeping for ${sleepTime}s"
|
||||
sleep "${sleepTime}s"
|
||||
sleep "${sleepTime}"
|
||||
done
|
||||
|
||||
# Run tests
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ set -u
|
|||
cp testfile1_old.d ../imports/testfile1.d
|
||||
# Sleep because modification times aren't stored with granularity of less
|
||||
# than one second
|
||||
sleep 1s;
|
||||
sleep 1
|
||||
|
||||
../../bin/dcd-client $1 file.d -c84 > actual1.txt
|
||||
diff actual1.txt expected1.txt
|
||||
|
||||
cp testfile1_new.d ../imports/testfile1.d
|
||||
# Same here
|
||||
sleep 1s;
|
||||
sleep 1
|
||||
|
||||
../../bin/dcd-client $1 file.d -c84 > actual2.txt
|
||||
diff actual2.txt expected2.txt
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ set -u
|
|||
cp testfile2_old.d ../imports/testfile2.d
|
||||
# Sleep because modification times aren't stored with granularity of less
|
||||
# than one second
|
||||
sleep 1s;
|
||||
sleep 1
|
||||
|
||||
../../bin/dcd-client $1 file.d -c39 > actual1.txt
|
||||
diff actual1.txt expected1.txt
|
||||
|
||||
cp testfile2_new.d ../imports/testfile2.d
|
||||
# Same here
|
||||
sleep 1s;
|
||||
sleep 1
|
||||
|
||||
../../bin/dcd-client $1 file.d -c39 > actual2.txt
|
||||
diff actual2.txt expected2.txt
|
||||
|
|
|
|||
Loading…
Reference in New Issue