From 0000c68ee6fa30a41764084d58ed50873ea0e51a Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 16 Nov 2022 19:59:14 +0100 Subject: [PATCH] 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 --- test/system/104-run.bats | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/system/104-run.bats b/test/system/104-run.bats index 9a04ebe..93a9b2c 100644 --- a/test/system/104-run.bats +++ b/test/system/104-run.bats @@ -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