There was an error while loading. Please reload this page.
2 parents 8763880 + 6a2b046 commit 74bdc63Copy full SHA for 74bdc63
src/main.sh
@@ -20,7 +20,7 @@ function main::exec_assert() {
20
assert_fn="assert_$assert_fn"
21
if ! type "$assert_fn" > /dev/null 2>&1; then
22
echo "Function $original_assert_fn does not exist."
23
- exit 1
+ exit 127
24
fi
25
26
tests/acceptance/bashunit_direct_fn_call_test.sh
@@ -79,5 +79,5 @@ function test_bashunit_direct_fn_call_failure() {
79
80
function test_bashunit_direct_fn_call_non_existing_fn() {
81
assert_match_snapshot "$(./bashunit -a non_existing_fn --env "$TEST_ENV_FILE")"
82
- assert_general_error "$(./bashunit -a non_existing_fn --env "$TEST_ENV_FILE")"
+ assert_command_not_found "$(./bashunit -a non_existing_fn --env "$TEST_ENV_FILE")"
83
}
0 commit comments