tests: mixed_create_failure: undefined log_err -> log_fail
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Issue #13215 Closes #13259
This commit is contained in:
parent
2d9da5e1c8
commit
f806d67846
|
@ -100,7 +100,7 @@ function test_ops
|
||||||
save_name="$test_path/$name"
|
save_name="$test_path/$name"
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
log_err "$cmd failed with unexpected error : $out"
|
log_fail "$cmd failed: $out"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -111,7 +111,7 @@ function test_ops
|
||||||
out=$($cmd 2>&1)
|
out=$($cmd 2>&1)
|
||||||
ret=$?
|
ret=$?
|
||||||
if (($ret != 0)); then
|
if (($ret != 0)); then
|
||||||
log_err "cmd:$cmd failed out:$out"
|
log_fail "$cmd failed: $out"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Now, try to rename the tmp_obj to the name which we failed to add earlier.
|
# Now, try to rename the tmp_obj to the name which we failed to add earlier.
|
||||||
|
@ -120,9 +120,9 @@ function test_ops
|
||||||
ret=$?
|
ret=$?
|
||||||
if (($ret != 0)); then
|
if (($ret != 0)); then
|
||||||
if [[ $out = *@(No space left on device)* ]]; then
|
if [[ $out = *@(No space left on device)* ]]; then
|
||||||
log_note "$cmd failed as expected : $out"
|
log_note "$cmd failed as expected: $out"
|
||||||
else
|
else
|
||||||
log_err "$cmd failed with : $out"
|
log_fail "$cmd failed: $out"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue