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:
Debarshi Ray 2022-11-16 19:59:14 +01:00
parent 78683b38ae
commit 0000c68ee6

View file

@ -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