Results for dparen.test.sh

casebashmkshzshoshdescription
0pass pass pass pass (( )) result
1pass pass pass pass negative number is true
2pass pass pass FAIL (( )) in if statement
details
3pass pass pass FAIL (( ))
details
4pass pass ok FAIL (( )) with arrays
detailsdetails
5pass pass pass FAIL (( )) with error
details

19 passed, 1 ok, 0 known unimplemented, 0 known bugs, 4 failed, 0 skipped

Details on runs that didn't PASS

osh2 (( )) in if statement

[osh stdout] Expected b'True\n', got b''

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 378, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 368, in main
    return OshMain(main_argv)
  File "bin/osh", line 327, in OshMain
    status, cflow = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 822, in Execute
    status, _ = self.Execute(arm.cond)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 703, in Execute
    status, cflow = self.Execute(node.command)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 723, in Execute
    ok = arith_ev.Eval(node.child)
  File "/home/andy/git/oil/bin/../core/expr_eval.py", line 64, in Eval
    result = self._Eval(node)
  File "/home/andy/git/oil/bin/../core/expr_eval.py", line 239, in _Eval
    raise AssertionError("Shouldn't get here")
AssertionError: Shouldn't get here
osh3 (( ))

[osh stdout] Expected b'1 3\n', got b''

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 378, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 368, in main
    return OshMain(main_argv)
  File "bin/osh", line 327, in OshMain
    status, cflow = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 758, in Execute
    status, cflow = self.Execute(child)  # last status wins
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 723, in Execute
    ok = arith_ev.Eval(node.child)
  File "/home/andy/git/oil/bin/../core/expr_eval.py", line 64, in Eval
    result = self._Eval(node)
  File "/home/andy/git/oil/bin/../core/expr_eval.py", line 237, in _Eval
    raise AssertionError("Invalid node %r" % node.id)
AttributeError: 'ArithAssign' object has no attribute 'id'
zsh4 (( )) with arrays

stdout:
9
stderr:
osh4 (( )) with arrays

[osh stdout] Expected b'15\n', got b''

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 378, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 368, in main
    return OshMain(main_argv)
  File "bin/osh", line 327, in OshMain
    status, cflow = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 758, in Execute
    status, cflow = self.Execute(child)  # last status wins
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 723, in Execute
    ok = arith_ev.Eval(node.child)
  File "/home/andy/git/oil/bin/../core/expr_eval.py", line 64, in Eval
    result = self._Eval(node)
  File "/home/andy/git/oil/bin/../core/expr_eval.py", line 237, in _Eval
    raise AssertionError("Invalid node %r" % node.id)
AttributeError: 'ArithAssign' object has no attribute 'id'
osh5 (( )) with error

[osh stdout] Expected b'false\ntrue\ntrue\n0\n', got b''

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 378, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 368, in main
    return OshMain(main_argv)
  File "bin/osh", line 327, in OshMain
    status, cflow = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 758, in Execute
    status, cflow = self.Execute(child)  # last status wins
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 765, in Execute
    status, cflow = self.Execute(left)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 723, in Execute
    ok = arith_ev.Eval(node.child)
  File "/home/andy/git/oil/bin/../core/expr_eval.py", line 64, in Eval
    result = self._Eval(node)
  File "/home/andy/git/oil/bin/../core/expr_eval.py", line 237, in _Eval
    raise AssertionError("Invalid node %r" % node.id)
AttributeError: 'ArithAssign' object has no attribute 'id'