Results for ysh-prompt.test.sh

statusysh
FAIL 8
total8
caseyshdescription
0FAIL default prompt doesn't confuse OSH and YSH
details
1FAIL promptVal() with various values
details
2FAIL promptVal() with invalid chars
details
3FAIL ysh respects PS1
details
4FAIL ysh respects renderPrompt() over PS1
details
5FAIL renderPrompt() doesn't return string
details
6FAIL renderPrompt() raises error
details
7FAIL 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

Details on runs that didn't PASS

ysh0 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_
ysh1 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_
ysh2 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_
ysh3 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_
ysh4 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_
ysh5 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_
ysh6 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_
ysh7 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_