Results for ysh-builtin-meta.test.sh

statusosh
pass 8
FAIL 2
total10
caseoshdescription
0pass runproc
1pass runproc typed args
2pass pp asdl
3pass pp asdl can handle an object cycle
4pass pp line supports BashArray, BashAssoc
5FAIL pp gc-stats
details
6pass pp cell
7pass pp cell on indexed array with hole
8pass pp proc
9FAIL pp (x) is like = keyword
details
8 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh5 pp gc-stats

[osh stdout] Expected '', got 'TODO\n'

stdout:
TODO
stderr:
osh9 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 1956: command.Pipeline failed with status 1