Results for if_.test.sh

casedashbashmkshzshoshdescription
0pass pass pass pass pass If
1pass pass pass pass pass else
2pass pass pass pass pass elif
3pass pass pass pass pass Long style
4pass pass pass pass pass If empty command
5pass pass pass pass FAIL If subshell true
details
6pass pass pass pass pass If subshell true WITH OUTPUT is different
7pass pass pass pass pass If subshell true WITH ARGUMENT
8pass pass pass pass FAIL If subshell false
details

43 passed, 0 ok, 0 known unimplemented, 0 known bugs, 2 failed, 0 skipped

Details on runs that didn't PASS

osh5 If subshell true

[osh stdout] Expected b'TRUE\n', got b''
[osh status] Expected 0, got 1

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 669, in Execute
    thunk = self._GetThunkForSimpleCommand(argv, more_env)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 498, in _GetThunkForSimpleCommand
    assert argv, "Need at least one arugment"
AssertionError: Need at least one arugment
osh8 If subshell false

[osh stdout] Expected b'FALSE\n', got b''
[osh status] Expected 0, got 1

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 669, in Execute
    thunk = self._GetThunkForSimpleCommand(argv, more_env)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 498, in _GetThunkForSimpleCommand
    assert argv, "Need at least one arugment"
AssertionError: Need at least one arugment