Results for ysh-list.test.sh

statusyshysh_ALT
pass 120
FAIL 012
total1212
caseyshysh_ALTdescription
0pass FAIL shell array :| a 'b c' |
details
1pass FAIL empty array and simple_word_eval (regression test)
details
2pass FAIL Empty array and assignment builtin (regression)
details
3pass FAIL Shell arrays support tilde detection, static globbing, brace detection
details
4pass FAIL Basic List, a[42] a['42'] allowed
details
5pass FAIL Mutate List entries, a[42] a['42'] allowed
details
6pass FAIL string array with command sub, varsub, etc.
details
7pass FAIL Can print type of List with pp
details
8pass FAIL splice and stringify array
details
9pass FAIL List->extend()
details
10pass FAIL List append()/extend() should return null
details
11pass FAIL List pop()
details
12 passed, 0 OK, 0 not implemented, 0 BUG, 12 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

ysh_ALT0 shell array :| a 'b c' |

[ysh_ALT stdout] Expected "['/', 'a', 'b c', '/']\n", got ''
[ysh_ALT status] Expected 0, got 1
[ysh_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 137, in AppBundleMain
    return shell.Main('ysh', 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/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT1 empty array and simple_word_eval (regression test)

[ysh_ALT stdout] Expected "len=0\n['/', '/']\n", got ''
[ysh_ALT status] Expected 0, got 1
[ysh_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 137, in AppBundleMain
    return shell.Main('ysh', 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/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT2 Empty array and assignment builtin (regression)

[ysh_ALT stdout] Expected 'z=1\n', got ''
[ysh_ALT status] Expected 0, got 1
[ysh_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 137, in AppBundleMain
    return shell.Main('ysh', 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/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT3 Shell arrays support tilde detection, static globbing, brace detection

[ysh_ALT stdout] Expected "['/home/bob/src', 'bar.py', 'foo.py', 'andy@example.com', 'bob@example.com', '*.py']\n" Got ''
[ysh_ALT status] Expected 0, got 1
[ysh_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 137, in AppBundleMain
    return shell.Main('ysh', 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/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT4 Basic List, a[42] a['42'] allowed

[ysh_ALT stdout] Expected 'len=3\n(Str) "2"\n(Str) "3"\n', got ''
[ysh_ALT status] Expected 3, got 1
[ysh_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 137, in AppBundleMain
    return shell.Main('ysh', 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/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT5 Mutate List entries, a[42] a['42'] allowed

[ysh_ALT stdout] Expected '(List) ["2",1,"4"]\n(List) ["2",1,9]\n(List) ["2",1,99]\n' Got ''
[ysh_ALT status] Expected 3, got 1
[ysh_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 137, in AppBundleMain
    return shell.Main('ysh', 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/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT6 string array with command sub, varsub, etc.

[ysh_ALT stdout] Expected 'len=4\n1\nhi\nsq\ndq 1\n', got ''
[ysh_ALT status] Expected 0, got 1
[ysh_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 137, in AppBundleMain
    return shell.Main('ysh', 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/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT7 Can print type of List with pp

[ysh_ALT stdout] Expected '(List) ["true"]\n(List) []\n', got ''
[ysh_ALT status] Expected 0, got 1
[ysh_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 137, in AppBundleMain
    return shell.Main('ysh', 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/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT8 splice and stringify array

[ysh_ALT stdout] Expected "['a b', 'c']\n", got ''
[ysh_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 137, in AppBundleMain
    return shell.Main('ysh', 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/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT9 List->extend()

[ysh_ALT stdout] Expected '2\n5\n', got ''
[ysh_ALT status] Expected 0, got 1
[ysh_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 137, in AppBundleMain
    return shell.Main('ysh', 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/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT10 List append()/extend() should return null

[ysh_ALT stdout] Expected 'pass\n', got ''
[ysh_ALT status] Expected 0, got 1
[ysh_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 137, in AppBundleMain
    return shell.Main('ysh', 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/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT11 List pop()

[ysh_ALT stdout] Expected 'pass\n', got ''
[ysh_ALT status] Expected 0, got 1
[ysh_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 137, in AppBundleMain
    return shell.Main('ysh', 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/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47