Skip to content

Commit bd709ed

Browse files
committed
test(nur-tests): 🚨 Add test that exit code is preserved
1 parent 0e22b6a commit bd709ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎nur-tests/nurfile

+5
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ def "nur test-invalid-calls" [] {
102102
assert exit-code { run-nur --commands some-command --enter-shell o+e>| ignore } 1
103103
}
104104

105+
def "nur do-test-preserve-exit-code" [] { exit 123 }
106+
def "nur test-preserve-exit-code" [] {
107+
assert exit-code { run-nur do-test-preserve-exit-code o+e>| ignore } 123
108+
}
109+
105110
# Utils and other commands
106111

107112
def is-windows [] {

0 commit comments

Comments
 (0)