spec test index / oilshell.org
status | ysh | |
FAIL | 8 | |
total | 8 | |
case | ysh | description |
0 | FAIL | default prompt doesn't confuse OSH and YSH |
details | ||
1 | FAIL | promptVal() with various values |
details | ||
2 | FAIL | promptVal() with invalid chars |
details | ||
3 | FAIL | ysh respects PS1 |
details | ||
4 | FAIL | ysh respects renderPrompt() over PS1 |
details | ||
5 | FAIL | renderPrompt() doesn't return string |
details | ||
6 | FAIL | renderPrompt() raises error |
details | ||
7 | FAIL | renderPrompt() has wrong signature |
details |
0 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped 8 failed under osh
ysh | 0 default prompt doesn't confuse OSH and YSH [ysh stdout] Expected '/ysh \\$ / /null/\n/null/ /\\s-\\v\\$ /\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 1 promptVal() with various values [ysh stdout] Expected 'x=$\npass\n', got '' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 2 promptVal() with invalid chars [ysh stdout] Expected 'x=<Error: \\D{} not in promptVal()> \nx=<Error: \\/ is invalid or unimplemented in $PS1> \n' Got '' [ysh status] Expected 3, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 3 ysh respects PS1 [ysh stdout] Expected 'hi\n^D\n', got '' [ysh stderr] Expected u'ysh myprompt$ ysh myprompt$ ', got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 4 ysh respects renderPrompt() over PS1 [ysh stdout] Expected 'hi\n^D\n', got '' [ysh stderr] Expected u'hi$ hi$ ', got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 5 renderPrompt() doesn't return string [ysh stdout] Expected 'hi\n^D\n', got '' [ysh 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/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 6 renderPrompt() raises error [ysh stdout] Expected 'hi\n^D\n', got '' [ysh stderr] Expected u'<Runtime error: oops><Runtime error: oops>' Got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |
ysh | 7 renderPrompt() has wrong signature [ysh stdout] Expected 'hi\n^D\n', got '' [ysh 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/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n' [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module> import posix_ as posix ImportError: No module named posix_ |