spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 7 | 4 | 3 | |
FAIL | 0 | 3 | 4 | |
total | 7 | 7 | 7 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | Bad var sub |
1 | pass | FAIL | FAIL | Braced block inside ${} |
details | details | |||
2 | pass | pass | pass | Nested ${} |
3 | pass | FAIL | FAIL | Filename redirect with "$@" |
details | details | |||
4 | pass | FAIL | FAIL | Filename redirect with split word |
details | details | |||
5 | pass | pass | FAIL | Descriptor redirect to bad "$@" |
details | ||||
6 | pass | pass | pass | Here doc with bad "$@" delimiter |
14 passed, 0 OK, 0 not implemented, 0 BUG, 7 failed, 0 timeouts, 0 cases skipped
osh_.py | 1 Braced block inside ${} [osh_.py stdout] Expected '/bin/ls\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 417, in <module> status = main(sys.argv) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, 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 1461, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 547, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1868, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1348, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1094, in _EvalBracedVarSub var_name, var_index, part.token): File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 519, in _ApplyTestOp self._EvalWordToParts(op.arg_word, quoted, part_vals, is_subst=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1455, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub stdout = self.shell_ex.RunCommandSub(node) AttributeError: 'NoneType' object has no attribute 'RunCommandSub' |
osh_.cc | 1 Braced block inside ${} [osh_.cc stdout] Expected '/bin/ls\n', got '\n' stdout: stderr: |
osh_.py | 3 Filename redirect with "$@" [osh_.py status] Expected 1, got 0 stdout: histderr: |
osh_.cc | 3 Filename redirect with "$@" [osh_.cc status] Expected 1, got 0 stdout: histderr: |
osh_.py | 4 Filename redirect with split word [osh_.py status] Expected 0, got 1 stdout: histderr: |
osh_.cc | 4 Filename redirect with split word [osh_.cc stdout] Expected 'hi\n', got "(cmd_value.Argv argv:[rm '_tmp/1 2'] arg_spids:[5 7])\nhi\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[rm '_tmp/1 2'] arg_spids:[5 7]) histderr: Unhandled SimpleCommand osh_eval.dbg: cpp/osh_bool_stat.h:18: bool bool_stat::DoUnaryOp(id_kind_asdl::Id_t, Str *): Assertion `0' failed. |
osh_.cc | 5 Descriptor redirect to bad "$@" [osh_.cc status] Expected 1, got -11 stdout: stderr: set 4 |