spec test index / oilshell.org
75 passed, 8 OK, 0 not implemented, 0 BUG, 40 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh_.py | 0 Export sets a global variable [osh_.py stdout] Expected 'X\nX\n', got 'None\nX\n' stdout: None Xstderr: |
osh_.cc | 0 Export sets a global variable [osh_.cc stdout] Expected 'X\nX\n', got 'X\n(cmd_value.Argv argv:[printenv.py GLOBAL] arg_spids:[20 22])\n' stdout: X (cmd_value.Argv argv:[printenv.py GLOBAL] arg_spids:[20 22])stderr: Unhandled SimpleCommand |
osh_.py | 1 Export sets a global variable that persists after export -n [osh_.py stdout] Expected 'X\nX\nX\nNone\n', got 'None\nX\nNone\nX\n' stdout: None X None Xstderr: |
osh_.cc | 1 Export sets a global variable that persists after export -n [osh_.cc stdout] Expected 'X\nX\nX\nNone\n', got 'X\n(cmd_value.Argv argv:[printenv.py GLOBAL] arg_spids:[20 22])\nX\n(cmd_value.Argv argv:[printenv.py GLOBAL] arg_spids:[34 36])\n' stdout: X (cmd_value.Argv argv:[printenv.py GLOBAL] arg_spids:[20 22]) X (cmd_value.Argv argv:[printenv.py GLOBAL] arg_spids:[34 36])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 4 Export a global variable and unset it [osh_.py stdout] Expected 'X\nX\ng=\nNone\n', got 'None\nNone\nX\ng=\n' stdout: None None X g=stderr: |
osh_.cc | 4 Export a global variable and unset it [osh_.cc stdout] Expected 'X\nX\ng=\nNone\n', got 'X\n(cmd_value.Argv argv:[printenv.py GLOBAL] arg_spids:[20 22])\ng=X\n(cmd_value.Argv argv:[printenv.py GLOBAL] arg_spids:[35 37])\n' stdout: X (cmd_value.Argv argv:[printenv.py GLOBAL] arg_spids:[20 22]) g=X (cmd_value.Argv argv:[printenv.py GLOBAL] arg_spids:[35 37])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 5 Export existing global variables [osh_.py stdout] Expected 'g1\ng2\n', got 'None\nNone\n' stdout: None Nonestderr: |
osh_.cc | 5 Export existing global variables [osh_.cc stdout] Expected 'g1\ng2\n', got '(cmd_value.Argv argv:[printenv.py G1 G2] arg_spids:[12 14 16])\n' stdout: (cmd_value.Argv argv:[printenv.py G1 G2] arg_spids:[12 14 16])stderr: Unhandled SimpleCommand |
osh_.py | 6 Export existing local variable [osh_.py stdout] Expected 'local1\nNone\n', got 'None\nNone\n' stdout: None Nonestderr: |
osh_.cc | 6 Export existing local variable [osh_.cc stdout] Expected 'local1\nNone\n', got '(cmd_value.Argv argv:[printenv.py L1] arg_spids:[18 20])\n(cmd_value.Argv argv:[printenv.py L1] arg_spids:[26 28])\n' stdout: (cmd_value.Argv argv:[printenv.py L1] arg_spids:[18 20]) (cmd_value.Argv argv:[printenv.py L1] arg_spids:[26 28])stderr: Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 7 Export a local that shadows a global [osh_.py stdout] Expected 'local1\nNone\nglobal\n', got 'None\nNone\nNone\n' stdout: None None Nonestderr: |
osh_.cc | 7 Export a local that shadows a global [osh_.cc stdout] Expected 'local1\nNone\nglobal\n', got '(cmd_value.Argv argv:[printenv.py V] arg_spids:[21 23])\n(cmd_value.Argv argv:[printenv.py V] arg_spids:[29 31])\n(cmd_value.Argv argv:[printenv.py V] arg_spids:[40 42])\n' stdout: (cmd_value.Argv argv:[printenv.py V] arg_spids:[21 23]) (cmd_value.Argv argv:[printenv.py V] arg_spids:[29 31]) (cmd_value.Argv argv:[printenv.py V] arg_spids:[40 42])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 8 Export a variable before defining it [osh_.py stdout] Expected 'u\n', got 'None\n' stdout: Nonestderr: |
osh_.cc | 8 Export a variable before defining it [osh_.cc stdout] Expected 'u\n', got '(cmd_value.Argv argv:[printenv.py U] arg_spids:[7 9])\n' stdout: (cmd_value.Argv argv:[printenv.py U] arg_spids:[7 9])stderr: Unhandled SimpleCommand |
osh_.py | 9 Unset exported variable, then define it again. It's NOT still exported. [osh_.py stdout] Expected 'u\nNone\nnewvalue\nNone\n', got 'None\nNone\nNone\nnewvalue\n' stdout: None None None newvaluestderr: |
osh_.cc | 9 Unset exported variable, then define it again. It's NOT still exported. [osh_.cc stdout] Expected 'u\nNone\nnewvalue\nNone\n', got '(cmd_value.Argv argv:[printenv.py U] arg_spids:[7 9])\n(cmd_value.Argv argv:[printenv.py U] arg_spids:[17 19])\nnewvalue\n(cmd_value.Argv argv:[printenv.py U] arg_spids:[28 30])\n' stdout: (cmd_value.Argv argv:[printenv.py U] arg_spids:[7 9]) (cmd_value.Argv argv:[printenv.py U] arg_spids:[17 19]) newvalue (cmd_value.Argv argv:[printenv.py U] arg_spids:[28 30])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 10 Exporting a parent func variable (dynamic scope) [osh_.py stdout] Expected 'before inner\nNone\ninner: X\nX\nafter inner\nX\n', got 'None\nbefore inner\nNone\nNone\ninner: X\nafter inner\n' stdout: None before inner None None inner: X after innerstderr: |
osh_.cc | 10 Exporting a parent func variable (dynamic scope) [osh_.cc stdout] Expected 'before inner\nNone\ninner: X\nX\nafter inner\nX\n', got 'before inner\n(cmd_value.Argv argv:[printenv.py outer_var] arg_spids:[46 48])\ninner: X\n(cmd_value.Argv argv:[printenv.py outer_var] arg_spids:[20 22])\nafter inner\n(cmd_value.Argv argv:[printenv.py outer_var] arg_spids:[61 63])\n' stdout: before inner (cmd_value.Argv argv:[printenv.py outer_var] arg_spids:[46 48]) inner: X (cmd_value.Argv argv:[printenv.py outer_var] arg_spids:[20 22]) after inner (cmd_value.Argv argv:[printenv.py outer_var] arg_spids:[61 63])stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand |
osh_.py | 11 Dependent export setting [osh_.py stdout] Expected 'v=None\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 1888, in EvalWordSequence2 return self._EvalAssignBuiltin(builtin_id, val0.s, words) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1739, in _EvalAssignBuiltin right = self.EvalRhsWord(rhs_word) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord return self.EvalWordToString(w) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString self._EvalWordPart(p, part_vals, quoted=False) 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 | 11 Dependent export setting [osh_.cc stdout] Expected 'v=None\n', got 'v=\n' stdout: v=stderr: |
osh | 13 can't export array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh_.py | 13 can't export array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh_.cc | 13 can't export array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh | 14 can't export associative array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh_.py | 14 can't export associative array stdout: stderr: export a ^~~~~~ [ stdin ]:3: fatal: Only strings can be exported |
osh_.cc | 14 can't export associative array stdout: stderr: a["foo"]=bar ^ [ array LValue in TODO ]:2: fatal: Only strings can be exported |
osh_.cc | 15 assign to readonly variable [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.cc | 16 Make an existing local variable readonly [osh_.cc stdout] Expected 'local\nstatus=1\nglobal\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.cc | 17 assign to readonly variable - errexit [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.cc | 18 Unset a variable [osh_.cc stdout] Expected 'foo=bar\nfoo=\n', got 'foo=bar\nfoo=bar\n' stdout: foo=bar foo=barstderr: |
osh_.cc | 21 Unset readonly variable [osh_.cc stdout] Expected 'status=1\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.py | 22 Unset a function without -f [osh_.py status] Expected 127, got 1 stdout: foostderr: Error running ['f']: [Errno 2] No such file or directory |
osh_.cc | 22 Unset a function without -f [osh_.cc status] Expected 127, got -6 stdout: foostderr: osh_eval.dbg: mycpp/mylib.h:635: void Dict<Str *, syntax_asdl::command__ShFunction *>::remove(K) [K = Str *, V = syntax_asdl::command__ShFunction *]: Assertion `0' failed. |
osh_.cc | 23 Unset has dynamic scope [osh_.cc stdout] Expected 'foo=bar\nfoo=\n', got 'foo=bar\nfoo=bar\n' stdout: foo=bar foo=barstderr: |
osh_.cc | 24 Unset and scope (bug #653) [osh_.cc stdout] Expected 'level2=yy\nlevel2=xx\nlevel1=xx\nlevel1=global\nlevel2=yy\nlevel2=global\n', got 'level2=yy\nlevel2=yy\nlevel1=yy\nlevel1=yy\nlevel2=yy\nlevel2=yy\n' stdout: level2=yy level2=yy level1=yy level1=yy level2=yy level2=yystderr: |
osh_.cc | 25 unset of local reveals variable in higher scope [osh_.cc stdout] Expected 'x=foo\nx=global\n', got 'x=foo\nx=foo\n' stdout: x=foo x=foostderr: |
osh_.cc | 28 Unset -v [osh_.cc stdout] Expected 'foo=\nfunction foo\n', got 'foo=bar\nfunction foo\n' stdout: foo=bar function foostderr: |
osh_.py | 29 Unset -f [osh_.py stdout] Expected 'foo=bar\nstatus=127\n', got 'foo=bar\nstatus=1\n' stdout: foo=bar status=1stderr: Error running ['foo']: [Errno 2] No such file or directory |
osh_.cc | 29 Unset -f [osh_.cc stdout] Expected 'foo=bar\nstatus=127\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:635: void Dict<Str *, syntax_asdl::command__ShFunction *>::remove(K) [K = Str *, V = syntax_asdl::command__ShFunction *]: Assertion `0' failed. |
osh | 32 Unset wrong type stdout: undef 1 undef 1 array 0 array 0 assoc 0 assoc 0stderr: unset -v 'undef[1]' ^ [ stdin ]:4: 'undef' isn't an array unset -v 'undef["key"]' ^ [ stdin ]:6: 'undef' isn't an array |
osh_.py | 32 Unset wrong type stdout: undef 1 undef 1 array 0 array 0 assoc 0 assoc 0stderr: unset -v 'undef[1]' ^ [ stdin ]:4: 'undef' isn't an array unset -v 'undef["key"]' ^ [ stdin ]:6: 'undef' isn't an array |
osh_.cc | 32 Unset wrong type [osh_.cc stdout] Expected 'undef 1\nundef 1\narray 0\narray 0\nassoc 0\nassoc 0\n', got 'undef 1\nundef 1\narray 0\narray 0\n' [osh_.cc status] Expected 0, got -6 stdout: undef 1 undef 1 array 0 array 0stderr: unset -v 'undef[1]' ^ [ stdin ]:4: 'undef' isn't an array unset -v 'undef["key"]' ^ TODO:6: 'undef' isn't an array osh_eval.dbg: mycpp/mylib.h:635: void Dict<Str *, Str *>::remove(K) [K = Str *, V = Str *]: Assertion `0' failed. |
osh_.cc | 33 unset -v assoc (related to issue #661) [osh_.cc stdout] Expected '1\nkeys=1],a[1\nvals=foo\n0\nkeys=\nvals=\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:769: int len(const Dict<K, V> *) [K = Str *, V = Str *]: Assertion `0' failed. |
osh_.cc | 34 unset assoc errors [osh_.cc stdout] Expected 'status=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:635: void Dict<Str *, Str *>::remove(K) [K = Str *, V = Str *]: Assertion `0' failed. |
osh | 38 local after readonly [osh stdout] Expected u'', got 'y=0\ny=\n' [osh status] Expected 1, got 0 stdout: y=0 y=stderr: |
osh_.py | 38 local after readonly [osh_.py stdout] Expected u'', got 'y=0\ny=\n' [osh_.py status] Expected 1, got 0 stdout: y=0 y=stderr: |
osh_.cc | 38 local after readonly [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.cc | 40 unset a[-1] in sparse array (bf.bash regression) [osh_.cc stdout] Expected 'len=3 a=0 2 3\nlast=3 second=2 third=\n---\nlen=2 a=0 2\nlast=2 second= third=0\n', got '' [osh_.cc status] Expected 0, got -11 stdout: stderr: |