summaryrefslogtreecommitdiff
path: root/test/script
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-08-22 22:10:51 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2026-08-22 22:10:51 +0200
commit0ba7a3adcc5e539a31b5893bc956a39105e6a9bf (patch)
tree9bb1cbf98c3ee4e65367d73fa0c272a962a1b826 /test/script
parentb7638754c0856b1bb5f911985190419ecb5e267b (diff)
Shell: track exit code of the last command
Diffstat (limited to 'test/script')
-rw-r--r--test/script/shell.et11
1 files changed, 8 insertions, 3 deletions
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