Skip to content

Commit

Permalink
test: shell: Improve load test
Browse files Browse the repository at this point in the history
This might have failed once in travis because of a short timeout.
Hopefully if this happens again, we'll now know why.
  • Loading branch information
purpleidea committed Feb 24, 2019
1 parent 5e38c1c commit d888748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/shell/load0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d888748

Please sign in to comment.