spec test index / oilshell.org
status | ysh | |
pass | 1 | |
FAIL | 4 | |
total | 5 | |
case | ysh | description |
0 | pass | help topic not found |
1 | FAIL | help topics that are embedded |
details | ||
2 | FAIL | help topics that print URLs |
details | ||
3 | FAIL | help shows 'ysh-chapters' topic |
details | ||
4 | FAIL | help List/append, runes, etc. |
details |
1 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 4 failed under osh
ysh | 1 help topics that are embedded [ysh stdout] Expected 'no args 0\n\n~~~ help\nhelp 0\n\n~~~ oils-usage\noils-usage 0\n\n~~~ osh-usage\nosh-usage 0\n\n~~~ ysh-usage\nysh-usage 0\n\n~~~ osh-chapters\nosh-chapters 0\n\n~~~ ysh-chapters\nysh-chapters 0\n\n' Got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: help > help.txt ^~~~ [ stdin ]:1: no help topics match 'help' 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 137, in AppBundleMain return shell.Main('ysh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1127, 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 1963, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1785, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1566, in _Dispatch status = self._DoRedirect(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1513, in _DoRedirect status = self._Execute(node.child) File "/home/uke/oil/osh/cmd_eval.py", line 1785, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1545, 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 328, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/uke/oil/core/executor.py", line 212, in RunBuiltin status = builtin_func.Run(cmd_val) File "/home/uke/oil/builtin/misc_osh.py", line 101, in Run assert found AssertionError |
ysh | 2 help topics that print URLs [ysh stdout] Expected 'chap-word-lang.html\nstatus=0\nchap-builtin-cmd.html\nstatus=0\n' Got '' [ysh status] Expected 0, got 1 stdout: stderr: help command-sub | grep -o chap-word-lang.html ^~~~~~~~~~~ [ stdin ]:1: no help topics match 'command-sub' help command-sub | grep -o chap-word-lang.html ^~~~ [ stdin ]:1: errexit PID 1171: command.Simple failed with status 1 help command-sub | grep -o chap-word-lang.html ^~~~ [ stdin ]:1: errexit PID 1168: command.Simple failed with status 1 help command-sub | grep -o chap-word-lang.html ^~~~ [ stdin ]:1: errexit PID 1168: command.Pipeline failed with status 1 |
ysh | 3 help shows 'ysh-chapters' topic [ysh stdout] Expected '~~~ ysh-chapters ~~~\nstatus=0\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: help | grep ysh-chapters ^~~~ [ stdin ]:1: no help topics match 'help' 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 137, in AppBundleMain return shell.Main('ysh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1127, 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 1963, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1785, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1570, 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 453, 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 1963, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1785, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1545, 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 328, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/uke/oil/core/executor.py", line 212, in RunBuiltin status = builtin_func.Run(cmd_val) File "/home/uke/oil/builtin/misc_osh.py", line 101, in Run assert found AssertionError help | grep ysh-chapters ^~~~ [ stdin ]:1: errexit PID 1173: command.Simple failed with status 1 help | grep ysh-chapters ^~~~ [ stdin ]:1: errexit PID 1173: command.Pipeline failed with status 1 |
ysh | 4 help List/append, runes, etc. [ysh stdout] Expected 'status=0\nstatus=0\nstatus=0\n', got '' [ysh status] Expected 0, got 10 stdout: stderr: var num_lines = $(@ARGV | wc -l) ^~~~~ [ stdin ]:4: no help topics match 'List/append' var num_lines = $(@ARGV | wc -l) ^~~~~ [ stdin ]:4: errexit PID 1182: command.Simple failed with status 1 error "only got $num_lines lines" ^~~~~ [ stdin ]:6: fatal: only got 0 lines |