Results for osh-only.test.sh

statusoshosh_ALT
pass 42
FAIL 02
total44
caseoshosh_ALTdescription
0pass pass --debug-file
1pass FAIL crash dump
details
2pass FAIL crash dump with source
details
3pass pass help osh and oil
6 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_ALT1 crash dump

[osh_ALT stdout] Expected 'status=1\nstatus=0\n', got 'status=1\nstatus=1\n'
[osh_ALT stderr] Found 'Traceback (most recent'

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 330, in _cpython_main_hook
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 303, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 294, in AppBundleMain
    return readlink.main(main_argv)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 667, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 330, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1529, in ExecuteAndCatch
    self.dumper.MaybeDump(status)
  File "/home/andy/git/oilshell/oil/core/dev.py", line 153, in MaybeDump
    import json
ImportError: No module named json
FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.8.11/_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
osh_ALT2 crash dump with source

[osh_ALT stderr] Found 'Traceback (most recent'

stdout:
status=1
OK
stderr:
  source spec/testdata/crash.sh
         ^~~~~~~~~~~~~~~~~~~~~~
[ -c flag ]:3: source 'spec/testdata/crash.sh' failed: No such file or directory
  source spec/testdata/crash.sh
  ^~~~~~
[ -c flag ]:3: fatal: Exiting with status 1 (command in PID 15220)
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 330, in _cpython_main_hook
    sys.exit(main(sys.argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 303, in main
    return AppBundleMain(argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 294, in AppBundleMain
    return readlink.main(main_argv)
  File "/home/andy/git/oilshell/oil/core/shell.py", line 667, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 330, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1529, in ExecuteAndCatch
    self.dumper.MaybeDump(status)
  File "/home/andy/git/oilshell/oil/core/dev.py", line 153, in MaybeDump
    import json
ImportError: No module named json
FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.8.11/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
+ set -o errexit
+ ok=0
+ test -s '/home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/14907-osh-crash-dump.json'
+ test -s '/home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/15071-osh-crash-dump.json'
+ python -m json.tool '/home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/15071-osh-crash-dump.json'
+ echo 'OK /home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/15071-osh-crash-dump.json'
OK /home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/15071-osh-crash-dump.json
+ (( ++ok ))
+ test -s '/home/andy/git/oilshell/oil/_tmp/spec-tmp/osh-only.test.sh/15220-osh-crash-dump.json'
+ test 1 -ge 1
+ echo OK