Results for osh-only.test.sh

caseoshosh_ALTdescription
0pass pass --debug-file
1pass pass strict-arith option
2pass pass strict-arith from command line
3pass pass repr
4pass FAIL crash dump
details
5pass pass crash dump with source

11 passed, 0 ok, 0 known unimplemented, 0 known bugs, 0 failed, 0 skipped

Details on runs that didn't PASS

osh_ALT4 crash dump

[osh_ALT stdout] Expected 'status=1\nstatus=0\n', got 'status=1\nstatus=1\n'

stdout:
status=1
status=1
stderr:
    echo $(( 1 / 0 ))
                 ^
[ -c flag ]:4: fatal: Divide by zero
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 849, in _cpython_main_hook
    main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 830, in main
    sys.exit(AppBundleMain(argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 800, in AppBundleMain
    status = ShellMain('osh', argv0, main_argv, login_shell)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 619, in ShellMain
    status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 169, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1213, in ExecuteAndCatch
    self.dumper.MaybeDump(status)
  File "/home/andy/git/oilshell/oil/core/dev.py", line 136, in MaybeDump
    import json
ImportError: No module named json
FATAL: couldn't import from app bundle '_tmp/oil-tar-test/oil-0.6.pre20/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
No JSON object could be decoded