command error

This commit is contained in:
pvincent
2026-07-25 14:34:07 +04:00
parent 1d60766305
commit 98deda9e6c
4 changed files with 10 additions and 8 deletions
+1
View File
@@ -70,6 +70,7 @@ fail_type exit EXIT
fail_type source_not_found SOURCE_NOT_FOUND
fail_type file_not_found FILE_NOT_FOUND
fail_type subshell_error COMMAND_NOT_FOUND '(hint: prefer source than subshell)'
fail_type command_error COMMAND_ERROR
failed=$((TEST_COUNT - SUCCESS_COUNT))
+3 -2
View File
@@ -11,11 +11,12 @@ function blabla {
function suite {
command_not_found
echo $nope
grep nope nope
exit
exit 10 # youpi
echo $nope
return 7
return
exit
}
blabla
+5
View File
@@ -94,6 +94,11 @@ function do_subshell_error {
"$BASEDIR/extra/library.bash"
}
function do_command_error {
>&2 echo nope is not defined!
grep nope nope
}
# FUNCTIONS
function call_function_which_will_exit {