Results for ysh-prompt.test.sh

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

Details on runs that didn't PASS

ysh_ALT0 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: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>
    __all__ = list(n for n in globals() if n[:1] != '_')
NameError: name 'globals' is not defined
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT1 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: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>
    __all__ = list(n for n in globals() if n[:1] != '_')
NameError: name 'globals' is not defined
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT2 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: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>
    __all__ = list(n for n in globals() if n[:1] != '_')
NameError: name 'globals' is not defined
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT3 ysh respects PS1

[ysh_ALT stdout] Expected 'hi\n^D\n', got ''
[ysh_ALT stderr] Expected u'ysh myprompt$ ysh myprompt$ ', got 'Could not import bin.oil\nTraceback (most recent call last):\n File "/home/uke/oil/bin/oil.py", line 22, in <module>\n from _devbuild.gen import id_kind\n File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>\n from _devbuild.gen.id_kind_asdl import Id, Kind\n File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>\n from asdl import pybase\n File "/home/uke/oil/asdl/pybase.py", line 5, in <module>\n from mycpp import mylib\n File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>\n from pylib import collections_\n File "/home/uke/oil/pylib/collections_.py", line 9, in <module>\n from typing import Any\n File "/home/uke/oil/vendor/typing.py", line 3, in <module>\n import abc\n File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>\n import types\n File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>\n __all__ = list(n for n in globals() if n[:1] != \'_\')\nNameError: name \'globals\' is not defined\nFATAL: couldn\'t import from app bundle \'/home/uke/oil/_tmp/oil-tar-test/oil-0.24.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: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>
    __all__ = list(n for n in globals() if n[:1] != '_')
NameError: name 'globals' is not defined
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
ysh_ALT4 ysh respects renderPrompt() over PS1

[ysh_ALT stdout] Expected 'hi\n^D\n', got ''
[ysh_ALT stderr] Expected u'hi$ hi$ ', got 'Could not import bin.oil\nTraceback (most recent call last):\n File "/home/uke/oil/bin/oil.py", line 22, in <module>\n from _devbuild.gen import id_kind\n File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>\n from _devbuild.gen.id_kind_asdl import Id, Kind\n File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>\n from asdl import pybase\n File "/home/uke/oil/asdl/pybase.py", line 5, in <module>\n from mycpp import mylib\n File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>\n from pylib import collections_\n File "/home/uke/oil/pylib/collections_.py", line 9, in <module>\n from typing import Any\n File "/home/uke/oil/vendor/typing.py", line 3, in <module>\n import abc\n File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>\n import types\n File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>\n __all__ = list(n for n in globals() if n[:1] != \'_\')\nNameError: name \'globals\' is not defined\nFATAL: couldn\'t import from app bundle \'/home/uke/oil/_tmp/oil-tar-test/oil-0.24.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: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>
    __all__ = list(n for n in globals() if n[:1] != '_')
NameError: name 'globals' is not defined
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
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 'Could not import bin.oil\nTraceback (most recent call last):\n File "/home/uke/oil/bin/oil.py", line 22, in <module>\n from _devbuild.gen import id_kind\n File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>\n from _devbuild.gen.id_kind_asdl import Id, Kind\n File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>\n from asdl import pybase\n File "/home/uke/oil/asdl/pybase.py", line 5, in <module>\n from mycpp import mylib\n File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>\n from pylib import collections_\n File "/home/uke/oil/pylib/collections_.py", line 9, in <module>\n from typing import Any\n File "/home/uke/oil/vendor/typing.py", line 3, in <module>\n import abc\n File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>\n import types\n File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>\n __all__ = list(n for n in globals() if n[:1] != \'_\')\nNameError: name \'globals\' is not defined\nFATAL: couldn\'t import from app bundle \'/home/uke/oil/_tmp/oil-tar-test/oil-0.24.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: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>
    __all__ = list(n for n in globals() if n[:1] != '_')
NameError: name 'globals' is not defined
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
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 'Could not import bin.oil\nTraceback (most recent call last):\n File "/home/uke/oil/bin/oil.py", line 22, in <module>\n from _devbuild.gen import id_kind\n File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>\n from _devbuild.gen.id_kind_asdl import Id, Kind\n File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>\n from asdl import pybase\n File "/home/uke/oil/asdl/pybase.py", line 5, in <module>\n from mycpp import mylib\n File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>\n from pylib import collections_\n File "/home/uke/oil/pylib/collections_.py", line 9, in <module>\n from typing import Any\n File "/home/uke/oil/vendor/typing.py", line 3, in <module>\n import abc\n File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>\n import types\n File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>\n __all__ = list(n for n in globals() if n[:1] != \'_\')\nNameError: name \'globals\' is not defined\nFATAL: couldn\'t import from app bundle \'/home/uke/oil/_tmp/oil-tar-test/oil-0.24.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: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>
    __all__ = list(n for n in globals() if n[:1] != '_')
NameError: name 'globals' is not defined
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
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 'Could not import bin.oil\nTraceback (most recent call last):\n File "/home/uke/oil/bin/oil.py", line 22, in <module>\n from _devbuild.gen import id_kind\n File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>\n from _devbuild.gen.id_kind_asdl import Id, Kind\n File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>\n from asdl import pybase\n File "/home/uke/oil/asdl/pybase.py", line 5, in <module>\n from mycpp import mylib\n File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>\n from pylib import collections_\n File "/home/uke/oil/pylib/collections_.py", line 9, in <module>\n from typing import Any\n File "/home/uke/oil/vendor/typing.py", line 3, in <module>\n import abc\n File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>\n import types\n File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>\n __all__ = list(n for n in globals() if n[:1] != \'_\')\nNameError: name \'globals\' is not defined\nFATAL: couldn\'t import from app bundle \'/home/uke/oil/_tmp/oil-tar-test/oil-0.24.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: 
Could not import bin.oil
Traceback (most recent call last):
  File "/home/uke/oil/bin/oil.py", line 22, in <module>
    from _devbuild.gen import id_kind
  File "/home/uke/oil/_devbuild/gen/id_kind.py", line 2, in <module>
    from _devbuild.gen.id_kind_asdl import Id, Kind
  File "/home/uke/oil/_devbuild/gen/id_kind_asdl.py", line 1, in <module>
    from asdl import pybase
  File "/home/uke/oil/asdl/pybase.py", line 5, in <module>
    from mycpp import mylib
  File "/home/uke/oil/mycpp/mylib.py", line 17, in <module>
    from pylib import collections_
  File "/home/uke/oil/pylib/collections_.py", line 9, in <module>
    from typing import Any
  File "/home/uke/oil/vendor/typing.py", line 3, in <module>
    import abc
  File "/home/uke/tmp/Python-2.7.13/Lib/abc.py", line 6, in <module>
    import types
  File "/home/uke/tmp/Python-2.7.13/Lib/types.py", line 86, in <module>
    __all__ = list(n for n in globals() if n[:1] != '_')
NameError: name 'globals' is not defined
FATAL: couldn't import from app bundle '/home/uke/oil/_tmp/oil-tar-test/oil-0.24.0/_bin/ysh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47