status | ysh | ysh_ALT | |
pass | 8 | 0 | |
FAIL | 0 | 8 | |
total | 8 | 8 | |
case | ysh | ysh_ALT | description |
0 | pass | FAIL | default prompt doesn't confuse OSH and YSH |
details | |||
1 | pass | FAIL | promptVal() with various values |
details | |||
2 | pass | FAIL | promptVal() with invalid chars |
details | |||
3 | pass | FAIL | ysh respects PS1 |
details | |||
4 | pass | FAIL | ysh respects renderPrompt() over PS1 |
details | |||
5 | pass | FAIL | renderPrompt() doesn't return string |
details | |||
6 | pass | FAIL | renderPrompt() raises error |
details | |||
7 | pass | FAIL | renderPrompt() has wrong signature |
details |
8 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
ysh_ALT | 0 default prompt doesn't confuse OSH and YSH [ysh_ALT stdout] Expected '/ysh \\$ / /null/\n/null/ /\\s-\\v\\$ /\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_ALT | 1 promptVal() with various values [ysh_ALT stdout] Expected 'x=$\npass\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_ALT | 2 promptVal() with invalid chars [ysh_ALT stdout] Expected 'x=<Error: \\D{} not in promptVal()> \nx=<Error: \\/ is invalid or unimplemented in $PS1> \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_ALT | 3 ysh respects PS1 [ysh_ALT stdout] Expected 'hi\n^D\n', got '' [ysh_ALT stderr] Expected u'ysh myprompt$ ysh myprompt$ ', got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook\n sys.exit(oils_for_unix.main(sys.argv))\n File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main\n return AppBundleMain(argv)\n File "/home/uke/oil/bin/oils_for_unix.py", line 137, in AppBundleMain\n return shell.Main(\'ysh\', arg_r, environ, login_shell, loader, readline)\n File "/home/uke/oil/core/shell.py", line 740, in Main\n b[builtin_i.bind] = readline_osh.Bind(readline, errfmt, mem)\n File "/home/uke/oil/builtin/readline_osh.py", line 58, in __init__\n readline.set_bind_shell_command_hook(lambda *args: self.bind_shell_command_hook(*args))\n File "/home/uke/oil/frontend/py_readline.py", line 169, in set_bind_shell_command_hook\n line_input.set_bind_shell_command_hook(hook)\nAttributeError: \'module\' object has no attribute \'set_bind_shell_command_hook\'\nFATAL: couldn\'t import from app bundle \'/home/uke/oil/_tmp/oil-tar-test/oil-0.25.0/_bin/ysh\' (1)\nStripping the oil.ovm binary may cause this error.\nSee https://github.com/oilshell/oil/issues/47\n' [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_ALT | 4 ysh respects renderPrompt() over PS1 [ysh_ALT stdout] Expected 'hi\n^D\n', got '' [ysh_ALT stderr] Expected u'hi$ hi$ ', got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook\n sys.exit(oils_for_unix.main(sys.argv))\n File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main\n return AppBundleMain(argv)\n File "/home/uke/oil/bin/oils_for_unix.py", line 137, in AppBundleMain\n return shell.Main(\'ysh\', arg_r, environ, login_shell, loader, readline)\n File "/home/uke/oil/core/shell.py", line 740, in Main\n b[builtin_i.bind] = readline_osh.Bind(readline, errfmt, mem)\n File "/home/uke/oil/builtin/readline_osh.py", line 58, in __init__\n readline.set_bind_shell_command_hook(lambda *args: self.bind_shell_command_hook(*args))\n File "/home/uke/oil/frontend/py_readline.py", line 169, in set_bind_shell_command_hook\n line_input.set_bind_shell_command_hook(hook)\nAttributeError: \'module\' object has no attribute \'set_bind_shell_command_hook\'\nFATAL: couldn\'t import from app bundle \'/home/uke/oil/_tmp/oil-tar-test/oil-0.25.0/_bin/ysh\' (1)\nStripping the oil.ovm binary may cause this error.\nSee https://github.com/oilshell/oil/issues/47\n' [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_ALT | 5 renderPrompt() doesn't return string [ysh_ALT stdout] Expected 'hi\n^D\n', got '' [ysh_ALT stderr] Expected u'<Error: renderPrompt() should return Str, got List> <Error: renderPrompt() should return Str, got List> ' Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook\n sys.exit(oils_for_unix.main(sys.argv))\n File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main\n return AppBundleMain(argv)\n File "/home/uke/oil/bin/oils_for_unix.py", line 137, in AppBundleMain\n return shell.Main(\'ysh\', arg_r, environ, login_shell, loader, readline)\n File "/home/uke/oil/core/shell.py", line 740, in Main\n b[builtin_i.bind] = readline_osh.Bind(readline, errfmt, mem)\n File "/home/uke/oil/builtin/readline_osh.py", line 58, in __init__\n readline.set_bind_shell_command_hook(lambda *args: self.bind_shell_command_hook(*args))\n File "/home/uke/oil/frontend/py_readline.py", line 169, in set_bind_shell_command_hook\n line_input.set_bind_shell_command_hook(hook)\nAttributeError: \'module\' object has no attribute \'set_bind_shell_command_hook\'\nFATAL: couldn\'t import from app bundle \'/home/uke/oil/_tmp/oil-tar-test/oil-0.25.0/_bin/ysh\' (1)\nStripping the oil.ovm binary may cause this error.\nSee https://github.com/oilshell/oil/issues/47\n' [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_ALT | 6 renderPrompt() raises error [ysh_ALT stdout] Expected 'hi\n^D\n', got '' [ysh_ALT stderr] Expected u'<Runtime error: oops><Runtime error: oops>' Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook\n sys.exit(oils_for_unix.main(sys.argv))\n File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main\n return AppBundleMain(argv)\n File "/home/uke/oil/bin/oils_for_unix.py", line 137, in AppBundleMain\n return shell.Main(\'ysh\', arg_r, environ, login_shell, loader, readline)\n File "/home/uke/oil/core/shell.py", line 740, in Main\n b[builtin_i.bind] = readline_osh.Bind(readline, errfmt, mem)\n File "/home/uke/oil/builtin/readline_osh.py", line 58, in __init__\n readline.set_bind_shell_command_hook(lambda *args: self.bind_shell_command_hook(*args))\n File "/home/uke/oil/frontend/py_readline.py", line 169, in set_bind_shell_command_hook\n line_input.set_bind_shell_command_hook(hook)\nAttributeError: \'module\' object has no attribute \'set_bind_shell_command_hook\'\nFATAL: couldn\'t import from app bundle \'/home/uke/oil/_tmp/oil-tar-test/oil-0.25.0/_bin/ysh\' (1)\nStripping the oil.ovm binary may cause this error.\nSee https://github.com/oilshell/oil/issues/47\n' [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_ALT | 7 renderPrompt() has wrong signature [ysh_ALT stdout] Expected 'hi\n^D\n', got '' [ysh_ALT stderr] Expected u"<Runtime error: Func 'renderPrompt' takes no positional args, but got 1><Runtime error: Func 'renderPrompt' takes no positional args, but got 1>" Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oil.py", line 34, in _cpython_main_hook\n sys.exit(oils_for_unix.main(sys.argv))\n File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main\n return AppBundleMain(argv)\n File "/home/uke/oil/bin/oils_for_unix.py", line 137, in AppBundleMain\n return shell.Main(\'ysh\', arg_r, environ, login_shell, loader, readline)\n File "/home/uke/oil/core/shell.py", line 740, in Main\n b[builtin_i.bind] = readline_osh.Bind(readline, errfmt, mem)\n File "/home/uke/oil/builtin/readline_osh.py", line 58, in __init__\n readline.set_bind_shell_command_hook(lambda *args: self.bind_shell_command_hook(*args))\n File "/home/uke/oil/frontend/py_readline.py", line 169, in set_bind_shell_command_hook\n line_input.set_bind_shell_command_hook(hook)\nAttributeError: \'module\' object has no attribute \'set_bind_shell_command_hook\'\nFATAL: couldn\'t import from app bundle \'/home/uke/oil/_tmp/oil-tar-test/oil-0.25.0/_bin/ysh\' (1)\nStripping the oil.ovm binary may cause this error.\nSee https://github.com/oilshell/oil/issues/47\n' [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 |