test/system: Ensure that 'toolbox run false' has exit code 1
This is a precursor to checking that higher valued exit codes from the command running inside the container are retained, and commands like test(1) can be used with 'toolbox run ...' in subsequent test cases. https://github.com/containers/toolbox/pull/1163
This commit is contained in:
parent
78683b38ae
commit
0000c68ee6
1 changed files with 9 additions and 0 deletions
|
@ -22,6 +22,15 @@ teardown() {
|
|||
assert_output ""
|
||||
}
|
||||
|
||||
@test "run: Smoke test with false(1)" {
|
||||
create_default_container
|
||||
|
||||
run -1 $TOOLBOX run false
|
||||
|
||||
assert_failure
|
||||
assert_output ""
|
||||
}
|
||||
|
||||
@test "run: Ensure that a login shell is used to invoke the command" {
|
||||
create_default_container
|
||||
|
||||
|
|
Loading…
Reference in a new issue