Results for oil-proc.test.sh

statusosh
pass 15
FAIL 2
total17
caseoshdescription
0pass Open proc (any number of args)
1FAIL Closed proc with no args, passed too many
details
2pass Open proc has "$@"
3pass Closed proc doesn't have "$@"
4pass Proc with default args
5pass Proc with explicit args
6pass Proc with varargs
7pass varargs 2
8pass Proc name-with-hyphen
9pass Proc with block arg
10pass proc returning wrong type
11pass proc returning invalid string
12FAIL Out param / setref
details
13pass 'return' doesn't accept expressions
14pass procs are in same namespace as shell functions
15pass Nested proc is disallowed at parse time
16pass Procs defined inside compound statements (with redefine_proc)
15 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

osh1 Closed proc with no args, passed too many

[osh stderr] Found 'Traceback (most recent'

stdout:
status=42
stderr:
Traceback (most recent call last):
  File "/home/build/oil/bin/oil.py", line 358, in <module>
    sys.exit(main(sys.argv))
  File "/home/build/oil/bin/oil.py", line 301, in main
    return AppBundleMain(argv)
  File "/home/build/oil/bin/oil.py", line 261, in AppBundleMain
    loader, line_input)
  File "/home/build/oil/core/shell.py", line 682, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/build/oil/core/main_loop.py", line 324, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/build/oil/osh/cmd_eval.py", line 1490, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/build/oil/osh/cmd_eval.py", line 1337, in _Execute
    status, check_errexit = self._Dispatch(node, pipeline_st)
  File "/home/build/oil/osh/cmd_eval.py", line 623, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/build/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/build/oil/core/executor.py", line 224, in RunSimpleCommand
    status = self.cmd_ev.RunProc(proc_node, argv[1:])
  File "/home/build/oil/osh/cmd_eval.py", line 1629, in RunProc
    (proc.name, n_params, n_args))
TypeError: proc 'f' expected 0 arguments, but got 2
osh12 Out param / setref

[osh stdout] Expected 'myvar=PREFIX-zzz\n', got 'myvar=PREFIX-\n'

stdout:
myvar=PREFIX-
stderr: