Results for ysh-expr-bool.test.sh

statusoshosh_ALT
pass 70
FAIL 07
total77
caseoshosh_ALTdescription
0pass FAIL or short circuits
details
1pass FAIL and short circuits
details
2pass FAIL not operator behaves like Python
details
3pass FAIL not, and, or
details
4pass FAIL and-or chains for typed data
details
5pass FAIL or BashArray, or BashAssoc
details
6pass FAIL x if b else y
details
7 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_ALT0 or short circuits

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

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 740, in Main
    b[builtin_i.bind] = readline_osh.Bind(readline, errfmt, mem)
  File "/home/uke/oil/builtin/readline_osh.py", line 58, in __init__
    readline.set_bind_shell_command_hook(lambda *args: self.bind_shell_command_hook(*args))
  File "/home/uke/oil/frontend/py_readline.py", line 169, in set_bind_shell_command_hook
    line_input.set_bind_shell_command_hook(hook)
AttributeError: 'module' object has no attribute 'set_bind_shell_command_hook'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.25.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
osh_ALT1 and short circuits

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

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 740, in Main
    b[builtin_i.bind] = readline_osh.Bind(readline, errfmt, mem)
  File "/home/uke/oil/builtin/readline_osh.py", line 58, in __init__
    readline.set_bind_shell_command_hook(lambda *args: self.bind_shell_command_hook(*args))
  File "/home/uke/oil/frontend/py_readline.py", line 169, in set_bind_shell_command_hook
    line_input.set_bind_shell_command_hook(hook)
AttributeError: 'module' object has no attribute 'set_bind_shell_command_hook'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.25.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
osh_ALT2 not operator behaves like Python

[osh_ALT stdout] Expected '(Bool) false\n(Bool) false\n(Bool) false\n(Bool) true\n(Bool) true\n(Bool) true\n(Bool) false\n' Got ''
[osh_ALT status] Expected 0, got 1
[osh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 740, in Main
    b[builtin_i.bind] = readline_osh.Bind(readline, errfmt, mem)
  File "/home/uke/oil/builtin/readline_osh.py", line 58, in __init__
    readline.set_bind_shell_command_hook(lambda *args: self.bind_shell_command_hook(*args))
  File "/home/uke/oil/frontend/py_readline.py", line 169, in set_bind_shell_command_hook
    line_input.set_bind_shell_command_hook(hook)
AttributeError: 'module' object has no attribute 'set_bind_shell_command_hook'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.25.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
osh_ALT3 not, and, or

[osh_ALT stdout] Expected 'false\nfalse\ntrue\n', got ''
[osh_ALT status] Expected 0, got 1
[osh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 740, in Main
    b[builtin_i.bind] = readline_osh.Bind(readline, errfmt, mem)
  File "/home/uke/oil/builtin/readline_osh.py", line 58, in __init__
    readline.set_bind_shell_command_hook(lambda *args: self.bind_shell_command_hook(*args))
  File "/home/uke/oil/frontend/py_readline.py", line 169, in set_bind_shell_command_hook
    line_input.set_bind_shell_command_hook(hook)
AttributeError: 'module' object has no attribute 'set_bind_shell_command_hook'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.25.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
osh_ALT4 and-or chains for typed data

[osh_ALT stdout] Expected 's\nNone\nx\ny\ny\n\n42\n0\n42\n0\n0.5\n0.0\n[\'a\']\n[]\n{\'d\': 1}\n{}\nOR\nAND\n---\n"s"\nnull\nx\ny\ny\n\n42\n0\n42\n0\n0.5\n0.0\n(List) ["a"]\n(List) []\n(Dict) {"d":1}\n(Dict) {}\nOR\nAND\n' Got ''
[osh_ALT status] Expected 0, got 1
[osh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 740, in Main
    b[builtin_i.bind] = readline_osh.Bind(readline, errfmt, mem)
  File "/home/uke/oil/builtin/readline_osh.py", line 58, in __init__
    readline.set_bind_shell_command_hook(lambda *args: self.bind_shell_command_hook(*args))
  File "/home/uke/oil/frontend/py_readline.py", line 169, in set_bind_shell_command_hook
    line_input.set_bind_shell_command_hook(hook)
AttributeError: 'module' object has no attribute 'set_bind_shell_command_hook'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.25.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
osh_ALT5 or BashArray, or BashAssoc

[osh_ALT stdout] Expected '{"type":"BashArray","data":{"0":"1","1":"2","2":"3"}}\n{"type":"BashAssoc","data":{"k":"v"}}\n' Got ''
[osh_ALT status] Expected 0, got 1
[osh_ALT stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 740, in Main
    b[builtin_i.bind] = readline_osh.Bind(readline, errfmt, mem)
  File "/home/uke/oil/builtin/readline_osh.py", line 58, in __init__
    readline.set_bind_shell_command_hook(lambda *args: self.bind_shell_command_hook(*args))
  File "/home/uke/oil/frontend/py_readline.py", line 169, in set_bind_shell_command_hook
    line_input.set_bind_shell_command_hook(hook)
AttributeError: 'module' object has no attribute 'set_bind_shell_command_hook'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.25.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
osh_ALT6 x if b else y

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

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook
    sys.exit(oils_for_unix.main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 740, in Main
    b[builtin_i.bind] = readline_osh.Bind(readline, errfmt, mem)
  File "/home/uke/oil/builtin/readline_osh.py", line 58, in __init__
    readline.set_bind_shell_command_hook(lambda *args: self.bind_shell_command_hook(*args))
  File "/home/uke/oil/frontend/py_readline.py", line 169, in set_bind_shell_command_hook
    line_input.set_bind_shell_command_hook(hook)
AttributeError: 'module' object has no attribute 'set_bind_shell_command_hook'
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.25.0/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47