Skip to content

Commit

Permalink
tests: mixed_create_failure: undefined log_err -> log_fail
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: John Kennedy <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Issue openzfs#13215
Closes openzfs#13259
  • Loading branch information
nabijaczleweli authored and andrewc12 committed Sep 23, 2022
1 parent fb28499 commit e7abad9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function test_ops
save_name="$test_path/$name"
break;
else
log_err "$cmd failed with unexpected error : $out"
log_fail "$cmd failed: $out"
fi
fi
done
Expand All @@ -111,7 +111,7 @@ function test_ops
out=$($cmd 2>&1)
ret=$?
if (($ret != 0)); then
log_err "cmd:$cmd failed out:$out"
log_fail "$cmd failed: $out"
fi

# Now, try to rename the tmp_obj to the name which we failed to add earlier.
Expand All @@ -120,9 +120,9 @@ function test_ops
ret=$?
if (($ret != 0)); then
if [[ $out = *@(No space left on device)* ]]; then
log_note "$cmd failed as expected : $out"
log_note "$cmd failed as expected: $out"
else
log_err "$cmd failed with : $out"
log_fail "$cmd failed: $out"
fi
fi
}
Expand Down

0 comments on commit e7abad9

Please sign in to comment.