Results for ysh-prompt.test.sh

statusyshysh_ALT
pass 43
FAIL 45
total88
caseyshysh_ALTdescription
0pass pass default prompt doesn't confuse OSH and YSH
1pass FAIL promptVal() with various values
details
2pass pass promptVal() with invalid chars
3pass pass ysh respects PS1
4FAIL FAIL ysh respects renderPrompt() over PS1
detailsdetails
5FAIL FAIL renderPrompt() doesn't return string
detailsdetails
6FAIL FAIL renderPrompt() raises error
detailsdetails
7FAIL FAIL renderPrompt() has wrong signature
detailsdetails
7 passed, 0 OK, 0 not implemented, 0 BUG, 9 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

ysh_ALT1 promptVal() with various values

[ysh_ALT stdout] Expected 'x=$\npass\n', got 'x=$\n'
[ysh_ALT status] Expected 0, got 3

stdout:
x=$
stderr:
  assert [x === ENV.PWD]
                   ^
[ stdin ]:9: fatal: Dict entry 'PWD' not found
ysh4 ysh respects renderPrompt() over PS1

[ysh stdout] Expected 'hi\n^D\n', got ''
[ysh stderr] Expected u'hi$ hi$ ', got " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43577: command.Simple failed with status 1\n"
[ysh status] Expected 0, got 1

stdout:
stderr: 
  export PS1='myprompt\$ '
  ^~~~~~
[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)
[ stdin ]:1: errexit PID 43577: command.Simple failed with status 1
ysh_ALT4 ysh respects renderPrompt() over PS1

[ysh_ALT stdout] Expected 'hi\n^D\n', got ''
[ysh_ALT stderr] Expected u'hi$ hi$ ', got " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43580: command.Simple failed with status 1\n"
[ysh_ALT status] Expected 0, got 1

stdout:
stderr: 
  export PS1='myprompt\$ '
  ^~~~~~
[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)
[ stdin ]:1: errexit PID 43580: command.Simple failed with status 1
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 " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43581: command.Simple failed with status 1\n"
[ysh status] Expected 0, got 1

stdout:
stderr: 
  export PS1='myprompt\$ '
  ^~~~~~
[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)
[ stdin ]:1: errexit PID 43581: command.Simple failed with status 1
ysh_ALT5 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 " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43584: command.Simple failed with status 1\n"
[ysh_ALT status] Expected 0, got 1

stdout:
stderr: 
  export PS1='myprompt\$ '
  ^~~~~~
[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)
[ stdin ]:1: errexit PID 43584: command.Simple failed with status 1
ysh6 renderPrompt() raises error

[ysh stdout] Expected 'hi\n^D\n', got ''
[ysh stderr] Expected u'<Runtime error: oops><Runtime error: oops>' Got " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43585: command.Simple failed with status 1\n"
[ysh status] Expected 0, got 1

stdout:
stderr: 
  export PS1='myprompt\$ '
  ^~~~~~
[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)
[ stdin ]:1: errexit PID 43585: command.Simple failed with status 1
ysh_ALT6 renderPrompt() raises error

[ysh_ALT stdout] Expected 'hi\n^D\n', got ''
[ysh_ALT stderr] Expected u'<Runtime error: oops><Runtime error: oops>' Got " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43588: command.Simple failed with status 1\n"
[ysh_ALT status] Expected 0, got 1

stdout:
stderr: 
  export PS1='myprompt\$ '
  ^~~~~~
[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)
[ stdin ]:1: errexit PID 43588: command.Simple failed with status 1
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 " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43589: command.Simple failed with status 1\n"
[ysh status] Expected 0, got 1

stdout:
stderr: 
  export PS1='myprompt\$ '
  ^~~~~~
[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)
[ stdin ]:1: errexit PID 43589: command.Simple failed with status 1
ysh_ALT7 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 " export PS1='myprompt\\$ '\n ^~~~~~\n[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)\n[ stdin ]:1: errexit PID 43592: command.Simple failed with status 1\n"
[ysh_ALT status] Expected 0, got 1

stdout:
stderr: 
  export PS1='myprompt\$ '
  ^~~~~~
[ stdin ]:1: export builtin is disabled in YSH (shopt --set no_exported)
[ stdin ]:1: errexit PID 43592: command.Simple failed with status 1