spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 4 | 0 | 2 | |
FAIL | 1 | 5 | 3 | |
total | 5 | 5 | 5 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | FAIL | FAIL | If empty command |
details | details | |||
1 | pass | FAIL | FAIL | If subshell true |
details | details | |||
2 | pass | FAIL | pass | If subshell true WITH OUTPUT is different |
details | ||||
3 | pass | FAIL | FAIL | If subshell true WITH ARGUMENT |
details | details | |||
4 | FAIL | FAIL | pass | If subshell false -- exit code is propagated in a weird way (strict_argv prevents) |
details | details |
6 passed, 0 OK, 0 not implemented, 0 BUG, 9 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh_.py | 0 If empty command [osh_.py stdout] Expected 'FALSE\n', got "(cmd_value.Argv argv:[''] arg_spids:[2])\nTRUE\n" stdout: (cmd_value.Argv argv:[''] arg_spids:[2]) TRUEstderr: Unhandled SimpleCommand |
osh_.cc | 0 If empty command [osh_.cc stdout] Expected 'FALSE\n', got "(cmd_value.Argv argv:[''] arg_spids:[2])\nTRUE\n" stdout: (cmd_value.Argv argv:[''] arg_spids:[2]) TRUEstderr: Unhandled SimpleCommand |
osh_.py | 1 If subshell true [osh_.py stdout] Expected 'TRUE\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 71, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main status = pure.Main('osh', arg_r, environ, login_shell, loader, None) File "/home/andy/git/oilshell/oil/core/pure.py", line 446, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1464, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1221, in _Dispatch status = self._ExecuteList(if_arm.cond) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1367, in _ExecuteList status = self._Execute(child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 605, in _Dispatch status = self._Execute(node.child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/core/pure.py", line 491, in RunSimpleCommand arg0 = argv[0] IndexError: list index out of range |
osh_.cc | 1 If subshell true [osh_.cc stdout] Expected 'TRUE\n', got 'FALSE\n' stdout: FALSEstderr: |
osh_.py | 2 If subshell true WITH OUTPUT is different [osh_.py stdout] Expected 'FALSE\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 71, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main status = pure.Main('osh', arg_r, environ, login_shell, loader, None) File "/home/andy/git/oilshell/oil/core/pure.py", line 446, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1464, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1221, in _Dispatch status = self._ExecuteList(if_arm.cond) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1367, in _ExecuteList status = self._Execute(child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 605, in _Dispatch status = self._Execute(node.child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/core/pure.py", line 491, in RunSimpleCommand arg0 = argv[0] IndexError: list index out of range |
osh_.py | 3 If subshell true WITH ARGUMENT [osh_.py stdout] Expected 'FALSE\n', got '(cmd_value.Argv argv:[X] arg_spids:[8])\nTRUE\n' stdout: (cmd_value.Argv argv:[X] arg_spids:[8]) TRUEstderr: Unhandled SimpleCommand |
osh_.cc | 3 If subshell true WITH ARGUMENT [osh_.cc stdout] Expected 'FALSE\n', got '(cmd_value.Argv argv:[X] arg_spids:[8])\nTRUE\n' stdout: (cmd_value.Argv argv:[X] arg_spids:[8]) TRUEstderr: Unhandled SimpleCommand |
osh | 4 If subshell false -- exit code is propagated in a weird way (strict_argv prevents) [osh stdout] Expected 'FALSE\n', got 'TRUE\n' stdout: TRUEstderr: |
osh_.py | 4 If subshell false -- exit code is propagated in a weird way (strict_argv prevents) [osh_.py stdout] Expected 'FALSE\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 71, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main status = pure.Main('osh', arg_r, environ, login_shell, loader, None) File "/home/andy/git/oilshell/oil/core/pure.py", line 446, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1464, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1221, in _Dispatch status = self._ExecuteList(if_arm.cond) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1367, in _ExecuteList status = self._Execute(child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 605, in _Dispatch status = self._Execute(node.child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1344, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 581, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 489, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/core/pure.py", line 491, in RunSimpleCommand arg0 = argv[0] IndexError: list index out of range |