not yet done with subshell error
This commit is contained in:
@@ -55,8 +55,11 @@ fail_type command_not_found COMMAND_NOT_FOUND
|
||||
fail_type exit EXIT
|
||||
fail_type source_not_found SOURCE_NOT_FOUND
|
||||
fail_type file_not_found FILE_NOT_FOUND
|
||||
fail_type subshell_source_not_found SUBSHELL_SOURCE_NOT_FOUND
|
||||
fail_type subshell_error SUBSHELL_ERROR
|
||||
|
||||
failed=$((TEST_COUNT - SUCCESS_COUNT))
|
||||
|
||||
if [[ $failed -gt 0 ]]; then
|
||||
ratio=$((100 * SUCCESS_COUNT / TEST_COUNT))
|
||||
echo "${ratio}% passed, $SUCCESS_COUNT succeeded, $failed failed!"
|
||||
|
||||
@@ -86,6 +86,18 @@ function do_source_not_found {
|
||||
function do_file_not_found {
|
||||
./lib/fake/nope.bash
|
||||
}
|
||||
|
||||
function do_subshell_source_not_found {
|
||||
output=$(miaou_debug "---subshell1--$$ $BASHPID $PPID--")
|
||||
output=$(miaou_debug "---subshell2--$$ $BASHPID $PPID--")
|
||||
: "$output"
|
||||
"${MIAOU_BASH_DIR}/test/stub/extra/library.bash"
|
||||
|
||||
}
|
||||
|
||||
function do_subshell_error {
|
||||
:
|
||||
}
|
||||
# FUNCTIONS
|
||||
|
||||
function call_function_which_will_exit {
|
||||
|
||||
Reference in New Issue
Block a user