Skip to content

Commit

Permalink
Fix srcenv tests when ran with pipe open to stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
ins0mniaque committed Dec 3, 2024
1 parent 3eaf8d9 commit 3523446
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion srcenv.tests
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,16 @@ EOF

# region Tests

[ -t 0 ] && no_stdin=1

start

run './srcenv --version' 'srcenv 1.4.7'

run './srcenv --invalid' '' 2
run './srcenv not_a_file' '' 1
run './srcenv --input not_a_command' '' 1
run './srcenv --export' '' 2
run "$no_stdin" './srcenv --export' '' 2
run './srcenv --undo' '' 5

run './srcenv --input "echo something"' ''
Expand Down

0 comments on commit 3523446

Please sign in to comment.