From 0ba7a3adcc5e539a31b5893bc956a39105e6a9bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 22 Aug 2026 22:10:51 +0200 Subject: Shell: track exit code of the last command --- test/script/shell.et | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'test/script/shell.et') diff --git a/test/script/shell.et b/test/script/shell.et index e63093b..e58dfea 100644 --- a/test/script/shell.et +++ b/test/script/shell.et @@ -139,13 +139,18 @@ test ShellExitOnError: expect /run-done/ flush - send "run Disabled" - expect /run-test-result Disabled done/ + send "run DisabledSuccess" + expect /run-test-result DisabledSuccess done/ + expect /run-done/ + flush + + send "run DisabledFailure" + expect /run-test-result DisabledFailure failed/ expect /run-done/ flush send "run Enabled" - expect /child-fail sh failed at: .*error-exit.et:18:9: false/ + expect /child-fail sh failed at: .*error-exit.et:25:9: false/ expect /run-test-result Enabled failed/ expect /run-done/ flush -- cgit v1.2.3