Make test suite a bit more robust

This commit is contained in:
Marc André Tanner 2020-02-26 12:24:59 +01:00
parent b2ada74d43
commit 58fee22707
1 changed files with 2 additions and 2 deletions

View File

@ -76,9 +76,9 @@ run_test_attached() {
echo -n "Running test attached: $name "
expected_abduco_attached_output "$name" "$cmd" > "$output_expected" 2>&1
$ABDUCO -c "$name" $cmd 2>&1 | sed 's/.$//' > "$output"
if diff -u "$output_expected" "$output" && check_environment; then
if $ABDUCO -c "$name" $cmd 2>&1 | sed 's/.$//' > "$output" && sleep 1 &&
diff -u "$output_expected" "$output" && check_environment; then
rm "$output" "$output_expected"
echo "OK"
return 0