spec test index / oilshell.org
51 passed, 0 OK, 0 not implemented, 0 BUG, 51 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh_.py | 0 exec builtin [osh_.py stdout] Expected 'hi\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 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 0 exec builtin [osh_.cc stdout] Expected 'hi\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 1 exec builtin with redirects [osh_.py stderr] Expected 'to stderr\n', got 'Traceback (most recent call last):\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>\n status = main(sys.argv)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch\n is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1333, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand\n return self.RunBuiltin(builtin_id, cmd_val)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin\n builtin_func = self.builtins[builtin_id]\nKeyError: 3\n' [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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 1 exec builtin with redirects [osh_.cc stderr] Expected 'to stderr\n', got "osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.\n" [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 2 exec builtin with here doc [osh_.py stdout] Expected 'x=one\ny=two\nDONE\n', got '' [osh_.py status] Expected 0, got 1 stdout: stderr: Error running ['/spec/builtins-exec-here-doc-helper.sh']: [Errno 2] No such file or directory |
osh_.cc | 2 exec builtin with here doc [osh_.cc stdout] Expected 'x=one\ny=two\nDONE\n', got "(cmd_value.Argv argv:['/spec/builtins-exec-here-doc-helper.sh'] arg_spids:[2])\n" stdout: (cmd_value.Argv argv:['/spec/builtins-exec-here-doc-helper.sh'] arg_spids:[2])stderr: Unhandled SimpleCommand |
osh_.py | 3 exec builtin accepts -- [osh_.py stdout] Expected 'hi\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 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 3 exec builtin accepts -- [osh_.cc stdout] Expected 'hi\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.py | 4 exec -- 2>&1 [osh_.py stdout] Expected 'stdout\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 1333, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 370, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 3 |
osh_.cc | 4 exec -- 2>&1 [osh_.cc stdout] Expected 'stdout\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh_.cc | 5 cd and $PWD [osh_.cc stdout] Expected '/\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 6 $OLDPWD [osh_.py stdout] Expected 'old: /\nOLDPWD=/\n/\n', got 'old: /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh\n/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh\n' stdout: old: /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.shstderr: [??? no location ???] $HOME isn't defined |
osh_.cc | 6 $OLDPWD [osh_.cc stdout] Expected 'old: /\nOLDPWD=/\n/\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.cc | 7 pwd [osh_.cc stdout] Expected '/\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 8 pwd after cd .. [osh_.py stdout] Expected 'dir-two\ndir-one\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: mkdir: cannot create directory ‘/dir-one’: Permission denied cd $dir ^~~~ [ stdin ]:3: cd '/dir-one/dir-two': No such file or directory 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 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 | 8 pwd after cd .. [osh_.cc stdout] Expected 'dir-two\ndir-one\n', got "(cmd_value.Argv argv:[mkdir -p '/dir-one/dir-two'] arg_spids:[4 6 8])\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/dir-one/dir-two'] arg_spids:[4 6 8])stderr: Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 9 pwd with symlink and -P [osh_.py stdout] Expected 'pwd:\nsymlink\npwd -P:\ntarget\n', got 'pwd:\n' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: pwd:stderr: mkdir: cannot create directory ‘/builtins-pwd-1’: Permission denied ln: failed to create symbolic link '/builtins-pwd-1/symlink': No such file or directory cd $tmp/symlink ^~~~ [ stdin ]:4: cd '/builtins-pwd-1/symlink': No such file or directory 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 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 | 9 pwd with symlink and -P [osh_.cc stdout] Expected 'pwd:\nsymlink\npwd -P:\ntarget\n', got "(cmd_value.Argv argv:[mkdir -p '/builtins-pwd-1/target'] arg_spids:[4 6 8])\n(cmd_value.Argv\n argv: [ln -s -f '/builtins-pwd-1/target' '/builtins-pwd-1/symlink']\n arg_spids: [11 13 15 17 20]\n)\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/builtins-pwd-1/target'] arg_spids:[4 6 8]) (cmd_value.Argv argv: [ln -s -f '/builtins-pwd-1/target' '/builtins-pwd-1/symlink'] arg_spids: [11 13 15 17 20] )stderr: Unhandled SimpleCommand Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.cc | 10 setting $PWD doesn't affect the value of 'pwd' builtin [osh_.cc stdout] Expected 'before foo\n/tmp/oil-spec-test/pwd\nafter foo\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])stderr: Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.cc | 11 unset PWD; then pwd [osh_.cc stdout] Expected 'PWD=\n/tmp/oil-spec-test/pwd\nPWD=\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])stderr: Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 12 'unset PWD; pwd' before any cd (tickles a rare corner case) [osh_.py stdout] Expected '/tmp/oil-spec-test/pwd-2\n', got '' [osh_.py status] Expected 0, got 1 stdout: stderr: Error running ['-c', 'unset PWD; pwd']: [Errno 2] No such file or directory |
osh_.cc | 12 'unset PWD; pwd' before any cd (tickles a rare corner case) [osh_.cc stdout] Expected '/tmp/oil-spec-test/pwd-2\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd-2'] arg_spids:[3 5 7])\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd-2'] arg_spids:[3 5 7])stderr: Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 13 lie about PWD; pwd before any cd [osh_.py stdout] Expected '/tmp/oil-spec-test/pwd-3\n', got '' [osh_.py status] Expected 0, got 1 stdout: stderr: Error running ['-c', 'PWD=foo; pwd']: [Errno 2] No such file or directory |
osh_.cc | 13 lie about PWD; pwd before any cd [osh_.cc stdout] Expected '/tmp/oil-spec-test/pwd-3\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd-3'] arg_spids:[3 5 7])\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd-3'] arg_spids:[3 5 7])stderr: Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.cc | 14 remove pwd dir [osh_.cc stdout] Expected '/tmp/oil-spec-test/pwd\nstatus=0\n/tmp/oil-spec-test/pwd\nstatus=0\n', got "(cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/tmp/oil-spec-test/pwd'] arg_spids:[3 5 7])stderr: Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 15 pwd in symlinked dir on shell initialization [osh_.py stdout] Expected 'symlink\ntarget\n', got '' [osh_.py stderr] Expected u'', got "mkdir: cannot create directory \xe2\x80\x98/builtins-pwd-2\xe2\x80\x99: Permission denied\nmkdir: cannot create directory \xe2\x80\x98/builtins-pwd-2\xe2\x80\x99: Permission denied\nln: failed to create symbolic link '/builtins-pwd-2/symlink': No such file or directory\n cd $tmp/symlink\n ^~~~\n[ stdin ]:5: cd '/builtins-pwd-2/symlink': No such file or directory\nError running ['-c', 'basename $(pwd)']: [Errno 2] No such file or directory\nError running ['-c', 'basename $(pwd)']: [Errno 2] No such file or directory\n" [osh_.py status] Expected 0, got 1 stdout: stderr: mkdir: cannot create directory ‘/builtins-pwd-2’: Permission denied mkdir: cannot create directory ‘/builtins-pwd-2’: Permission denied ln: failed to create symbolic link '/builtins-pwd-2/symlink': No such file or directory cd $tmp/symlink ^~~~ [ stdin ]:5: cd '/builtins-pwd-2/symlink': No such file or directory Error running ['-c', 'basename $(pwd)']: [Errno 2] No such file or directory Error running ['-c', 'basename $(pwd)']: [Errno 2] No such file or directory |
osh_.cc | 15 pwd in symlinked dir on shell initialization [osh_.cc stdout] Expected 'symlink\ntarget\n', got "(cmd_value.Argv argv:[mkdir -p '/builtins-pwd-2'] arg_spids:[4 6 8])\n(cmd_value.Argv argv:[mkdir -p '/builtins-pwd-2/target'] arg_spids:[10 12 14])\n(cmd_value.Argv\n argv: [ln -s -f '/builtins-pwd-2/target' '/builtins-pwd-2/symlink']\n arg_spids: [17 19 21 23 26]\n)\n" [osh_.cc stderr] Expected u'', got "Unhandled SimpleCommand\nUnhandled SimpleCommand\nUnhandled SimpleCommand\nosh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed.\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/builtins-pwd-2'] arg_spids:[4 6 8]) (cmd_value.Argv argv:[mkdir -p '/builtins-pwd-2/target'] arg_spids:[10 12 14]) (cmd_value.Argv argv: [ln -s -f '/builtins-pwd-2/target' '/builtins-pwd-2/symlink'] arg_spids: [17 19 21 23 26] )stderr: Unhandled SimpleCommand Unhandled SimpleCommand Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 16 Test the current directory after 'cd ..' involving symlinks [osh_.py stdout] Expected 'a\nc\n', got 'a\nbuiltins-pwd-1\nbuiltins-pwd-2\nc\ncd-symlink\ncd-symtarget\ndir-one\nhome\nsymlinktest\n_tmp\numask-one\numask-two\n' stdout: a builtins-pwd-1 builtins-pwd-2 c cd-symlink cd-symtarget dir-one home symlinktest _tmp umask-one umask-twostderr: mkdir: cannot create directory ‘/symlinktest’: Permission denied cd $dir ^~~~ [ stdin ]:3: cd '/symlinktest': No such file or directory |
osh_.cc | 16 Test the current directory after 'cd ..' involving symlinks [osh_.cc stdout] Expected 'a\nc\n', got "(cmd_value.Argv argv:[mkdir -p '/symlinktest'] arg_spids:[4 6 8])\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/symlinktest'] arg_spids:[4 6 8])stderr: Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 17 cd with no arguments [osh_.py stdout] Expected 'OK\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 981, in _Dispatch status = self._Execute(left) 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 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 | 17 cd with no arguments [osh_.cc stdout] Expected 'OK\n', got "(cmd_value.Argv argv:[mkdir -p '/home'] arg_spids:[4 6 8])\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/home'] arg_spids:[4 6 8])stderr: Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.cc | 18 cd to nonexistent dir [osh_.cc stdout] Expected 'status=1\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 19 cd away from dir that was deleted [osh_.py stdout] Expected 'cd-nonexistent\nstatus=0\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: mkdir: cannot create directory ‘/cd-nonexistent’: Permission denied cd $dir ^~~~ [ stdin ]:3: cd '/cd-nonexistent': No such file or directory rmdir: failed to remove '/cd-nonexistent': No such file or directory [??? no location ???] $HOME isn't defined 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 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 | 19 cd away from dir that was deleted [osh_.cc stdout] Expected 'cd-nonexistent\nstatus=0\n', got "(cmd_value.Argv argv:[mkdir -p '/cd-nonexistent'] arg_spids:[4 6 8])\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/cd-nonexistent'] arg_spids:[4 6 8])stderr: Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.cc | 20 cd permits double bare dash [osh_.cc stdout] Expected '/\n', got '/home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.sh\n' stdout: /home/andy/git/oilshell/oil/_tmp/spec-tmp/builtins.test.shstderr: |
osh_.py | 21 cd to symlink with -L and -P [osh_.py stdout] Expected 'OK\nOK\nOK\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: mkdir: cannot create directory ‘/cd-symtarget’: Permission denied ln: failed to create symbolic link '/cd-symlink': Permission denied cd $lnk ^~~~ [ stdin ]:5: cd '/cd-symlink': No such file or directory cd -L $lnk ^~~~ [ stdin ]:7: cd '/cd-symlink': No such file or directory 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 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 354, in RunBuiltin status = builtin_func.Run(cmd_val) File "/home/andy/git/oilshell/oil/osh/builtin_misc.py", line 336, in Run posix.chdir(real_dest_dir) TypeError: coercing to Unicode: need string or buffer, NoneType found |
osh_.cc | 21 cd to symlink with -L and -P [osh_.cc stdout] Expected 'OK\nOK\nOK\n', got "(cmd_value.Argv argv:[mkdir -p '/cd-symtarget'] arg_spids:[8 10 12])\n(cmd_value.Argv argv:[ln -s '/cd-symtarget' '/cd-symlink'] arg_spids:[14 16 18 20])\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/cd-symtarget'] arg_spids:[8 10 12]) (cmd_value.Argv argv:[ln -s '/cd-symtarget' '/cd-symlink'] arg_spids:[14 16 18 20])stderr: Unhandled SimpleCommand Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 22 cd to relative path with -L and -P [osh_.py stdout] Expected 'OK\nOK\nOK\n', got 'failed\n' [osh_.py status] Expected 0, got 1 stdout: failedstderr: mkdir: cannot create directory ‘/cd-symtarget’: Permission denied ln: failed to create symbolic link '/cd-symlink': Permission denied cd $lnk/subdir ^~~~ [ stdin ]:6: cd '/cd-symlink/subdir': No such file or directory |
osh_.cc | 22 cd to relative path with -L and -P [osh_.cc stdout] Expected 'OK\nOK\nOK\n', got "(cmd_value.Argv argv:[mkdir -p '/cd-symtarget/subdir'] arg_spids:[28 30 32])\n(cmd_value.Argv argv:[ln -s '/cd-symtarget/subdir' '/cd-symlink'] arg_spids:[34 36 38 40])\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[mkdir -p '/cd-symtarget/subdir'] arg_spids:[28 30 32]) (cmd_value.Argv argv:[ln -s '/cd-symtarget/subdir' '/cd-symlink'] arg_spids:[34 36 38 40])stderr: Unhandled SimpleCommand Unhandled SimpleCommand osh_eval.dbg: cpp/pylib_os_path.h:10: Str *os_path::join(Str *, Str *): Assertion `0' failed. |
osh_.py | 23 Exit out of function [osh_.py status] Expected 3, got 1 stdout: stderr: |
osh_.cc | 23 Exit out of function [osh_.cc status] Expected 3, got 1 stdout: stderr: |
osh_.py | 26 time block [osh_.py stdout] Expected 'user\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 837, in _Dispatch val = self.word_ev.EvalRhsWord(pair.rhs) 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 | 26 time block [osh_.cc stdout] Expected 'user\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/core_passwd.h:29: Tuple3<double, double, double> passwd::Time(): Assertion `0' failed. |
osh_.py | 27 time pipeline [osh_.py stdout] Expected '3\n', got '' stdout: stderr: real 0.000 user 0.000 sys 0.000 |
osh_.cc | 27 time pipeline [osh_.cc stdout] Expected '3\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/core_passwd.h:29: Tuple3<double, double, double> passwd::Time(): Assertion `0' failed. |
osh_.cc | 28 shift [osh_.cc stdout] Expected u'2 3 4\n4\n', got '\n\n' stdout: stderr: set 6 |
osh_.py | 32 set umask in octal [osh_.py stdout] Expected u'664\n644\n', got '' [osh_.py stderr] Expected u'', got 'Traceback (most recent call last):\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>\n status = main(sys.argv)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch\n is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand\n return self.RunBuiltin(builtin_id, cmd_val)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin\n builtin_func = self.builtins[builtin_id]\nKeyError: 31\n' [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 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 31 |
osh_.cc | 32 set umask in octal [osh_.cc stdout] Expected u'664\n644\n', got "(cmd_value.Argv argv:[rm -f '/umask-one' '/umask-two'] arg_spids:[0 2 4 7])\n" [osh_.cc stderr] Expected u'', got "Unhandled SimpleCommand\nosh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.\n" [osh_.cc status] Expected 0, got -6 stdout: (cmd_value.Argv argv:[rm -f '/umask-one' '/umask-two'] arg_spids:[0 2 4 7])stderr: Unhandled SimpleCommand osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |
osh | 33 set umask symbolically [osh stdout] Expected '664\n644\n', got '664\n664\n' [osh stderr] Expected u'', got "osh warning: umask with symbolic input isn't implemented\n" stdout: 664 664stderr: osh warning: umask with symbolic input isn't implemented |
osh_.py | 33 set umask symbolically [osh_.py stdout] Expected '664\n644\n', got '' [osh_.py stderr] Expected u'', got 'Traceback (most recent call last):\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>\n status = main(sys.argv)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main\n cmd_flags=cmd_eval.IsMainProgram)\n File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch\n is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch\n status = self._Execute(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute\n status, check_errexit = self._Dispatch(node)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 580, in _Dispatch\n status = self._RunSimpleCommand(cmd_val, node.do_fork)\n File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand\n return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand\n return self.RunBuiltin(builtin_id, cmd_val)\n File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin\n builtin_func = self.builtins[builtin_id]\nKeyError: 31\n' [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 580, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 488, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 388, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 351, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 31 |
osh_.cc | 33 set umask symbolically [osh_.cc stdout] Expected '664\n644\n', got '' [osh_.cc stderr] Expected u'', got "osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.\n" [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. |