feat(xce-test-e2e-primitives): !cmd shell-escape via system(), feeds $? (task 2.1)
This commit is contained in:
parent
7ad63e7403
commit
0584a6229a
2 changed files with 36 additions and 1 deletions
|
|
@ -17,7 +17,7 @@
|
|||
- _Depends: 1.1_
|
||||
|
||||
- [ ] 2. Shell-escape
|
||||
- [ ] 2.1 `!<cmd>` runs a shell command and feeds `$?`
|
||||
- [x] 2.1 `!<cmd>` runs a shell command and feeds `$?`
|
||||
- In `preprocess_and_run`, when the first non-whitespace char is `!`, run the remainder via `system()`; set `g_last_status = WEXITSTATUS(rc)` (non-zero on `system` failure); a non-zero status is a command failure (subject to 1.1's abort/continue + exit code).
|
||||
- Observable: `!true` succeeds and sets `$?`=0; `!false` fails the session and sets `$?`≠0; a script can `!kill ...` / `!bash start.sh ...` to drive node lifecycle.
|
||||
- _Requirements: 2.1, 2.2, 2.3, 2.4_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue