Results for loop.test.sh

statusoshosh_.pyosh_.cc
pass 242323
ok 111
FAIL 011
total252525
caseoshosh_.pyosh_.ccdescription
0pass pass pass implicit for loop
1pass pass pass empty for loop (has "in")
2pass pass pass for loop with invalid identifier
3pass pass pass the word 'in' can be the loop variable
4pass pass pass Tilde expansion within for loop
5pass pass pass Brace Expansion within Array
6pass pass pass using loop var outside loop
7pass pass pass continue
8pass pass pass break
9ok ok ok dynamic control flow (KNOWN INCOMPATIBILITY)
detailsdetailsdetails
10pass pass pass while in while condition
11pass pass pass while in pipe
12pass pass pass while in pipe with subshell
13pass pass pass until loop
14pass pass pass continue at top level
15pass pass pass continue in subshell
16pass pass pass continue in subshell aborts with errexit
17pass pass pass bad arg to break
18pass pass pass too many args to continue
19pass pass pass break in condition of loop
20pass pass pass break in condition of nested loop
21pass pass pass return within eval
22pass pass pass break/continue within eval
23pass FAIL FAIL break/continue within source
detailsdetails
24pass pass pass top-level break/continue/return (without strict_control_flow)
70 passed, 3 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh9 dynamic control flow (KNOWN INCOMPATIBILITY)

stdout:
1
2
3
stderr:
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
osh_.py9 dynamic control flow (KNOWN INCOMPATIBILITY)

stdout:
1
2
3
stderr:
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
osh_.cc9 dynamic control flow (KNOWN INCOMPATIBILITY)

stdout:
1
2
3
stderr:
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
    $b
    ^~
[ stdin ]:4: 'break' not found
osh_.py23 break/continue within source

[osh_.py stdout] Expected '1\n3\ndone\n', got '1\n'
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
1
stderr:
Traceback (most recent call last):
  File "/home/uke/oil/bin/osh_eval.py", line 66, in <module>
    sys.exit(main(sys.argv))
  File "/home/uke/oil/bin/osh_eval.py", line 34, in main
    None)
  File "/home/uke/oil/core/shell_native.py", line 486, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 332, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 1644, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 1482, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 711, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork)
  File "/home/uke/oil/osh/cmd_eval.py", line 550, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/uke/oil/core/executor.py", line 215, in RunSimpleCommand
    status = self.cmd_ev.RunProc(proc_node, argv[1:], arg0_spid)
  File "/home/uke/oil/osh/cmd_eval.py", line 1791, in RunProc
    status = self._Execute(proc.body)
  File "/home/uke/oil/osh/cmd_eval.py", line 1482, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 1054, in _Dispatch
    status = self._ExecuteList(node.children)
  File "/home/uke/oil/osh/cmd_eval.py", line 1547, in _ExecuteList
    status = self._Execute(child)
  File "/home/uke/oil/osh/cmd_eval.py", line 1482, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 1280, in _Dispatch
    status = self._Execute(node.body)  # last one wins
  File "/home/uke/oil/osh/cmd_eval.py", line 1482, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 1049, in _Dispatch
    status = self._ExecuteList(node.children)
  File "/home/uke/oil/osh/cmd_eval.py", line 1547, in _ExecuteList
    status = self._Execute(child)
  File "/home/uke/oil/osh/cmd_eval.py", line 1482, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 1372, in _Dispatch
    status = self._ExecuteList(if_arm.action)
  File "/home/uke/oil/osh/cmd_eval.py", line 1547, in _ExecuteList
    status = self._Execute(child)
  File "/home/uke/oil/osh/cmd_eval.py", line 1482, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 711, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork)
  File "/home/uke/oil/osh/cmd_eval.py", line 550, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork)
  File "/home/uke/oil/core/executor.py", line 192, in RunSimpleCommand
    status = self.RunBuiltin(builtin_id, cmd_val)
  File "/home/uke/oil/core/executor.py", line 129, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 2
osh_.cc23 break/continue within source

[osh_.cc stdout] Expected '1\n3\ndone\n', got '1\n'
[osh_.cc status] Expected 0, got -6

stdout:
1
stderr:
terminate called after throwing an instance of 'KeyError*'