status | ysh | ysh_ALT | |
pass | 6 | 6 | |
FAIL | 1 | 1 | |
total | 7 | 7 | |
case | ysh | ysh_ALT | description |
0 | pass | pass | captureStdout() is like $() |
1 | pass | pass | captureStdout() failure |
2 | pass | pass | io->eval() is like eval builtin |
3 | pass | pass | captureOutputs() is like $() but captures stderr as well |
4 | FAIL | FAIL | captureOutputs() failure |
details | details | ||
5 | pass | pass | io->eval() with failing command - caller must handle |
6 | pass | pass | io->eval() with exit |
12 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 1 failed under osh
ysh | 4 captureOutputs() failure [ysh stdout] Expected '(Dict) {"status":1,"code":4,"message":"captureOutput(): command failed with status 1"}\n' Got '(Dict) {"status":1,"stderr":" var c = ^(echo one; false; echo two)\\n ^~~~~\\n[ stdin ]:1: errexit PID 6629: command.Simple failed with status 1","code":4,"message":"captureOutputs(): command failed with status 1"}\n' stdout: (Dict) {"status":1,"stderr":" var c = ^(echo one; false; echo two)\n ^~~~~\n[ stdin ]:1: errexit PID 6629: command.Simple failed with status 1","code":4,"message":"captureOutputs(): command failed with status 1"}stderr: var x = io.captureOutputs(c) ^ [ stdin ]:9: fatal: captureOutputs(): command failed with status 1 |
ysh_ALT | 4 captureOutputs() failure [ysh_ALT stdout] Expected '(Dict) {"status":1,"code":4,"message":"captureOutput(): command failed with status 1"}\n' Got '(Dict) {"status":1,"stderr":" var c = ^(echo one; false; echo two)\\n ^~~~~\\n[ stdin ]:1: errexit PID 6632: command.Simple failed with status 1","code":4,"message":"captureOutputs(): command failed with status 1"}\n' stdout: (Dict) {"status":1,"stderr":" var c = ^(echo one; false; echo two)\n ^~~~~\n[ stdin ]:1: errexit PID 6632: command.Simple failed with status 1","code":4,"message":"captureOutputs(): command failed with status 1"}stderr: var x = io.captureOutputs(c) ^ [ stdin ]:9: fatal: captureOutputs(): command failed with status 1 |