diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-08-22 22:10:51 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-08-22 22:10:51 +0200 |
| commit | 0ba7a3adcc5e539a31b5893bc956a39105e6a9bf (patch) | |
| tree | 9bb1cbf98c3ee4e65367d73fa0c272a962a1b826 /test/script/shell.et | |
| parent | b7638754c0856b1bb5f911985190419ecb5e267b (diff) | |
Shell: track exit code of the last command
Diffstat (limited to 'test/script/shell.et')
| -rw-r--r-- | test/script/shell.et | 11 |
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 |