From d88874845cc41821d9a2f6d346235ef932fe93fe Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sun, 24 Feb 2019 13:36:57 -0500 Subject: [PATCH] test: shell: Improve load test This might have failed once in travis because of a short timeout. Hopefully if this happens again, we'll now know why. --- test/shell/load0.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/shell/load0.sh b/test/shell/load0.sh index 08541081ce..cb61f62b69 100755 --- a/test/shell/load0.sh +++ b/test/shell/load0.sh @@ -36,13 +36,13 @@ file "${tmpdir}/loadavg" { } EOF -$TIMEOUT "$MGMT" run --tmp-prefix --converged-timeout=5 lang --lang "$tmpdir/load0.mcl" & +$TIMEOUT "$MGMT" run --tmp-prefix --converged-timeout=15 lang --lang "$tmpdir/load0.mcl" & pid=$! wait $pid # get exit status e=$? set +e -egrep "$regex" "$tmpdir/loadavg" || fail_test "Could not match $tmpdir/loadavg to '$regex'." +egrep "$regex" "$tmpdir/loadavg" || fail_test "Could not match $tmpdir/loadavg to '$regex'. Got: '`cat $tmpdir/loadavg`'." if [ "$tmpdir" = "" ]; then echo "BUG, tried to delete empty string path"