Skip to content

Commit

Permalink
test(nur-tests): 🚨 Add test that exit code is preserved
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanier committed Sep 18, 2024
1 parent 0e22b6a commit bd709ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nur-tests/nurfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ def "nur test-invalid-calls" [] {
assert exit-code { run-nur --commands some-command --enter-shell o+e>| ignore } 1
}

def "nur do-test-preserve-exit-code" [] { exit 123 }
def "nur test-preserve-exit-code" [] {
assert exit-code { run-nur do-test-preserve-exit-code o+e>| ignore } 123
}

# Utils and other commands

def is-windows [] {
Expand Down

0 comments on commit bd709ed

Please sign in to comment.