Skip to content

Commit

Permalink
Fix srcenv tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ins0mniaque committed Dec 10, 2024
1 parent 29e6314 commit 7a0049d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions srcenv.tests
Original file line number Diff line number Diff line change
Expand Up @@ -540,18 +540,18 @@ run_posix_tests() {
run "$1" "$2 -v" 'srcenv 1.5.1'
run "$1" "$2 --version" 'srcenv 1.5.1'

run "$1" "$2" ''
run "$and_no_stdin" "$2" ''
run "$1" "$2 --invalid" '' 2
run "$1" "$2 init" '' 2
run "$1" "$2 sh not_a_file" '' 1
run "$1" "$2 sh --input not_a_command" '' 127
run "$and_no_stdin" "$2 --export" '' 2

run "$1" "$2 sh --restore" ''
run "$1" "SRCENV_RESTORE='' $2 sh --restore" '' 5
run "$1" "$2 --restore" '' 2
run "$1" "$2 sh --backup --restore" '' 2
run "$1" "$2 sh --cmd src --backup --restore" ''
run "$1" "$2 sh --restore" ''
run "$1" "SRCENV_RESTORE='' $2 sh --restore" '' 5
run "$1" "$2 --restore" '' 2
run "$and_no_stdin" "$2 sh --backup --restore" '' 2
run "$1" "$2 sh --cmd src --backup --restore" ''

run "$1" "$2 sh --input 'echo something'" ''
run "$1" "$2 sh --input 'echo something; not_a_command'" '' 127
Expand Down

0 comments on commit 7a0049d

Please sign in to comment.