spec test index / oilshell.org
status | osh | osh_ALT | |
pass | 8 | 8 | |
FAIL | 2 | 2 | |
total | 10 | 10 | |
case | osh | osh_ALT | description |
0 | pass | pass | runproc |
1 | pass | pass | runproc typed args |
2 | pass | pass | pp asdl |
3 | pass | pass | pp asdl can handle an object cycle |
4 | pass | pass | pp line supports BashArray, BashAssoc |
5 | FAIL | FAIL | pp gc-stats |
details | details | ||
6 | pass | pass | pp cell |
7 | pass | pass | pp cell on indexed array with hole |
8 | pass | pass | pp proc |
9 | FAIL | FAIL | pp (x) is like = keyword |
details | details |
16 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
osh | 5 pp gc-stats [osh stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |
osh_ALT | 5 pp gc-stats [osh_ALT stdout] Expected '', got 'TODO\n' stdout: TODOstderr: |
osh | 9 pp (x) is like = keyword [osh stdout] Expected '(Str) \'foo\'\n(Str) b\'isn\\\'t this sq\'\n(Str) \'"dq $myvar"\'\n(Str) b\'\\\\ backslash \\\\\\\\\'\n(Str) b\'one \\t two \\n\'\n(List)\n[\n 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,\n 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,\n 123, 123, 123, 123, 123, 123, 123, 123, 123, 123\n]\n' Got '(Str) \'foo\'\n(Str) b\'isn\\\'t this sq\'\n(Str) \'"dq $myvar"\'\n(Str) b\'\\\\ backslash \\\\\\\\\'\n(Str) b\'one \\t two \\n\'\n(List)\n' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: (Str) 'foo' (Str) b'isn\'t this sq' (Str) '"dq $myvar"' (Str) b'\\ backslash \\\\' (Str) b'one \t two \n' (List)stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 198, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1137, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 364, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 1950, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1772, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1557, in _Dispatch status = self._DoPipeline(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 877, in _DoPipeline self.shell_ex.RunPipeline(node, cmd_st) File "/home/uke/oil/core/executor.py", line 452, in RunPipeline pi.StartPipeline(self.waiter) File "/home/uke/oil/core/process.py", line 1306, in StartPipeline pid = proc.StartProcess(trace.PipelinePart) File "/home/uke/oil/core/process.py", line 1081, in StartProcess self.thunk.Run() File "/home/uke/oil/core/process.py", line 841, in Run self.cmd_ev.ExecuteAndCatch(self.node, cmd_flags=cmd_eval.Optimize) File "/home/uke/oil/osh/cmd_eval.py", line 1950, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1772, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1532, in _Dispatch status = self._DoSimple(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 827, in _DoSimple status = self._RunSimpleCommand(cmd_val, cmd_st, run_flags) File "/home/uke/oil/osh/cmd_eval.py", line 518, in _RunSimpleCommand run_flags) File "/home/uke/oil/core/executor.py", line 327, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/uke/oil/core/executor.py", line 211, in RunBuiltin status = builtin_func.Run(cmd_val) File "/home/uke/oil/builtin/io_ysh.py", line 70, in Run ui.PrettyPrintValue(val, mylib.Stdout()) File "/home/uke/oil/core/ui.py", line 536, in PrettyPrintValue printer.PrintValue(val, f) File "/home/uke/oil/data_lang/pretty.py", line 324, in PrintValue self._PrintDoc(document, buf) File "/home/uke/oil/data_lang/pretty.py", line 363, in _PrintDoc buf.write_spaces(frag.indent) AttributeError: 'file' object has no attribute 'write_spaces' pp (repeat([123], 40)) | cat ^~ [ stdin ]:15: errexit PID 32316: command.Pipeline failed with status 1 |
osh_ALT | 9 pp (x) is like = keyword [osh_ALT stdout] Expected '(Str) \'foo\'\n(Str) b\'isn\\\'t this sq\'\n(Str) \'"dq $myvar"\'\n(Str) b\'\\\\ backslash \\\\\\\\\'\n(Str) b\'one \\t two \\n\'\n(List)\n[\n 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,\n 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,\n 123, 123, 123, 123, 123, 123, 123, 123, 123, 123\n]\n' Got '' [osh_ALT status] Expected 0, got 1 [osh_ALT stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook sys.exit(oils_for_unix.main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1137, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 375, in Batch return status File "/home/uke/oil/osh/cmd_eval.py", line 1953, in ExecuteAndCatch raise # 'eval break' and 'source return.sh', etc. File "/home/uke/oil/osh/cmd_eval.py", line 1825, in _Execute errexit_loc = process_sub_st.locs[i] File "/home/uke/oil/osh/cmd_eval.py", line 1536, in _Dispatch status = self._DoExpandedAlias(node) File "/home/uke/oil/osh/cmd_eval.py", line 827, in _DoSimple status = self._RunSimpleCommand(cmd_val, cmd_st, run_flags) File "/home/uke/oil/osh/cmd_eval.py", line 518, in _RunSimpleCommand run_flags) File "/home/uke/oil/core/executor.py", line 327, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/uke/oil/core/executor.py", line 211, in RunBuiltin status = builtin_func.Run(cmd_val) File "/home/uke/oil/builtin/meta_osh.py", line 158, in Run resolved = path_arg IndexError: list index out of range FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.22.0/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |