Results for errexit.test.sh

statusoshosh_.pyosh_.cc
pass 271615
FAIL 11213
total282828
caseoshosh_.pyosh_.ccdescription
0pass pass pass errexit aborts early
1pass FAIL FAIL errexit for nonexistent command
detailsdetails
2pass FAIL FAIL errexit aborts early on pipeline
detailsdetails
3pass pass pass errexit with { }
4pass pass pass errexit with if and { }
5pass FAIL FAIL errexit with ||
detailsdetails
6pass FAIL FAIL errexit with &&
detailsdetails
7pass pass pass errexit test && -- from gen-module-init
8pass pass pass errexit test && and fail
9pass pass pass errexit and loop
10pass pass pass errexit and brace group { }
11pass pass FAIL errexit and time { }
details
12pass pass pass errexit with !
13pass pass pass errexit with ! and ;
14pass pass pass errexit with while/until
15pass pass pass errexit with (( ))
16pass FAIL FAIL errexit with subshell
detailsdetails
17pass pass pass set -o errexit while it's being ignored (moot with strict_errexit)
18pass pass pass set +o errexit while it's being ignored (moot with strict_errexit)
19pass FAIL FAIL setting errexit in a subshell works but doesn't affect parent shell
detailsdetails
20pass FAIL FAIL set errexit while it's ignored in a subshell (moot with strict_errexit)
detailsdetails
21pass pass pass shopt -s strict:all || true while errexit is on
22pass pass pass errexit double guard
23pass FAIL FAIL background processes respect errexit
detailsdetails
24pass FAIL FAIL pipeline process respects errexit
detailsdetails
25pass FAIL FAIL compound command
detailsdetails
26pass FAIL FAIL while loop
detailsdetails
27FAIL FAIL FAIL set -e enabled in function (regression)
detailsdetailsdetails
58 passed, 0 OK, 0 not implemented, 0 BUG, 26 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh_.py1 errexit for nonexistent command

[osh_.py stdout] Expected u'', got '(cmd_value.Argv argv:[nonexistent__ZZ] arg_spids:[6])\ndone\n'
[osh_.py status] Expected 127, got 0

stdout:
(cmd_value.Argv argv:[nonexistent__ZZ] arg_spids:[6])
done
stderr:
Unhandled SimpleCommand
osh_.cc1 errexit for nonexistent command

[osh_.cc stdout] Expected u'', got '(cmd_value.Argv argv:[nonexistent__ZZ] arg_spids:[6])\ndone\n'
[osh_.cc status] Expected 127, got 0

stdout:
(cmd_value.Argv argv:[nonexistent__ZZ] arg_spids:[6])
done
stderr:
Unhandled SimpleCommand
osh_.py2 errexit aborts early on pipeline

[osh_.py stdout] Expected u'', got 'two\n'
[osh_.py status] Expected 1, got 0

stdout:
two
stderr:
osh_.cc2 errexit aborts early on pipeline

[osh_.cc stdout] Expected u'', got 'two\n'
[osh_.cc status] Expected 1, got 0

stdout:
two
stderr:
osh_.py5 errexit with ||

[osh_.py stdout] Expected 'ok\n', got ''

stdout:
stderr: 
osh_.cc5 errexit with ||

[osh_.cc stdout] Expected 'ok\n', got ''

stdout:
stderr: 
osh_.py6 errexit with &&

[osh_.py status] Expected 1, got 0

stdout:
ok
stderr:
osh_.cc6 errexit with &&

[osh_.cc status] Expected 1, got 0

stdout:
ok
stderr:
osh_.cc11 errexit and time { }

[osh_.cc status] Expected 1, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/core_pyos.h:29: Tuple3<double, double, double> pyos::Time(): Assertion `0' failed.
osh_.py16 errexit with subshell

[osh_.py stdout] Expected 'one\n', got 'three\n'
[osh_.py status] Expected 1, got 0

stdout:
three
stderr:
osh_.cc16 errexit with subshell

[osh_.cc stdout] Expected 'one\n', got 'three\n'
[osh_.cc status] Expected 1, got 0

stdout:
three
stderr:
osh_.py19 setting errexit in a subshell works but doesn't affect parent shell

[osh_.py stdout] Expected '1\n2\n3\n5\n6\n', got '5\n6\n'

stdout:
5
6
stderr:
osh_.cc19 setting errexit in a subshell works but doesn't affect parent shell

[osh_.cc stdout] Expected '1\n2\n3\n5\n6\n', got '5\n6\n'

stdout:
5
6
stderr:
osh_.py20 set errexit while it's ignored in a subshell (moot with strict_errexit)

[osh_.py stdout] Expected '1\n2\n3\n4\n5\n6\n', got '5\n6\n'

stdout:
5
6
stderr:
  false
  ^~~~~
[ stdin ]:6: fatal: Exiting with status 1 (command in PID 5488)
osh_.cc20 set errexit while it's ignored in a subshell (moot with strict_errexit)

[osh_.cc stdout] Expected '1\n2\n3\n4\n5\n6\n', got '5\n6\n'

stdout:
5
6
stderr:
  false 
  ^~~~~
[ stdin ]:6: fatal: Exiting with status 1 (command in PID 5518)
osh_.py23 background processes respect errexit

[osh_.py stdout] Expected 'one\n', got ''
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 71, in <module>
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 35, in main
    status = pure.Main('osh', arg_r, environ, login_shell, loader, None)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 449, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1438, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1318, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 570, in _Dispatch
    status = self._RunSimpleCommand(cmd_val, node.do_fork)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 481, in _RunSimpleCommand
    return self.shell_ex.RunSimpleCommand(cmd_val, do_fork)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 516, in RunSimpleCommand
    return self.RunBuiltin(builtin_id, cmd_val)
  File "/home/andy/git/oilshell/oil/core/pure.py", line 479, in RunBuiltin
    builtin_func = self.builtins[builtin_id]
KeyError: 32
osh_.cc23 background processes respect errexit

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

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:689: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed.
osh_.py24 pipeline process respects errexit

[osh_.py stdout] Expected 'one\n[three]\n', got 'four\n'
[osh_.py status] Expected 1, got 0

stdout:
four
stderr:
osh_.cc24 pipeline process respects errexit

[osh_.cc stdout] Expected 'one\n[three]\n', got 'four\n'
[osh_.cc status] Expected 1, got 0

stdout:
four
stderr:
osh_.py25 compound command

[osh_.py stdout] Expected u'', got '(cmd_value.Argv argv:[cat] arg_spids:[8])\nstatus=0\nshould not get here\n'
[osh_.py status] Expected 1, got 0

stdout:
(cmd_value.Argv argv:[cat] arg_spids:[8])
status=0
should not get here
stderr:
Unhandled SimpleCommand
osh_.cc25 compound command

[osh_.cc stdout] Expected u'', got '(cmd_value.Argv argv:[cat] arg_spids:[8])\nstatus=0\nshould not get here\n'
[osh_.cc status] Expected 1, got 0

stdout:
(cmd_value.Argv argv:[cat] arg_spids:[8])
status=0
should not get here
stderr:
Unhandled SimpleCommand
osh_.py26 while loop

[osh_.py stdout] Expected u'', got 'status=0\nshould not get here\n'
[osh_.py status] Expected 1, got 0

stdout:
status=0
should not get here
stderr:
osh_.cc26 while loop

[osh_.cc stdout] Expected u'', got 'status=0\nshould not get here\n'
[osh_.cc status] Expected 1, got 0

stdout:
status=0
should not get here
stderr:
osh27 set -e enabled in function (regression)

[osh stdout] Expected 'should be executed\nshould be executed\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
    false
    ^~~~~
[ stdin ]:4: fatal: Exiting with status 1 (command in PID 6072)
osh_.py27 set -e enabled in function (regression)

[osh_.py stdout] Expected 'should be executed\nshould be executed\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
    false
    ^~~~~
[ stdin ]:4: fatal: Exiting with status 1 (command in PID 6113)
osh_.cc27 set -e enabled in function (regression)

[osh_.cc stdout] Expected 'should be executed\nshould be executed\n', got ''
[osh_.cc status] Expected 0, got 1

stdout:
stderr: 
    false
    ^~~~~
[ stdin ]:4: fatal: Exiting with status 1 (command in PID 6150)