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 'TRUE\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 428, in <module>
    main(sys.argv)
  File "bin/osh", line 415, in main
    sys.exit(OilMain(argv))
  File "bin/osh", line 398, in OilMain
    status = OshMain(main_argv)
  File "bin/osh", line 357, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1113, in Execute
    status = self._Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1059, in _Execute
    status = self._Execute(arm.cond)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 909, in _Execute
    status = self._Execute(node.command)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 878, in _Execute
    thunk = self._GetThunkForSimpleCommand(argv, more_env)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 691, in _GetThunkForSimpleCommand
    assert argv, "Need at least one arugment"
AssertionError: Need at least one arugment
osh8 If subshell false

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

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 428, in <module>
    main(sys.argv)
  File "bin/osh", line 415, in main
    sys.exit(OilMain(argv))
  File "bin/osh", line 398, in OilMain
    status = OshMain(main_argv)
  File "bin/osh", line 357, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1113, in Execute
    status = self._Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1059, in _Execute
    status = self._Execute(arm.cond)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 909, in _Execute
    status = self._Execute(node.command)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 878, in _Execute
    thunk = self._GetThunkForSimpleCommand(argv, more_env)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 691, in _GetThunkForSimpleCommand
    assert argv, "Need at least one arugment"
AssertionError: Need at least one arugment