Results for ysh-method-io.test.sh

statusysh
FAIL 9
total9
caseyshdescription
0FAIL captureStdout() is like $()
details
1FAIL captureStdout() failure
details
2FAIL io->eval() is like eval builtin
details
3FAIL captureAll() is like $() but captures stderr and status
details
4FAIL captureAll() doesn't fail
details
5FAIL io->eval() with failing command - caller must handle
details
6FAIL io->eval() with exit
details
7FAIL io.glob() respects shell filters
details
8FAIL io.libcGlob() does not respect shell filters
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 9 failed, 0 timeouts, 0 cases skipped
9 failed under osh

Details on runs that didn't PASS

ysh0 captureStdout() is like $()

[ysh stdout] Expected '(Str) "one\\ncaptured"\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
ysh1 captureStdout() failure

[ysh stdout] Expected '(Dict) {"status":1,"code":4,"message":"captureStdout(): command failed with status 1"}\n' Got ''
[ysh status] Expected 4 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
ysh2 io->eval() is like eval builtin

[ysh stdout] Expected 'one\ntwo\nstatus=null\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
ysh3 captureAll() is like $() but captures stderr and status

[ysh stdout] Expected '(Dict) {"stdout":"stdout\\ncaptured\\n\\u0000","stderr":"stderr\\ncaptured\\n","status":42}\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
ysh4 captureAll() doesn't fail

[ysh stdout] Expected '(Dict) {"code":0}\n(Dict) {"stdout":"out\\n","stderr":"err\\n","status":1}\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
ysh5 io->eval() with failing command - caller must handle

[ysh stdout] Expected 'one\n(Dict) {"code":1}\none\n' Got ''
[ysh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
ysh6 io->eval() with exit

[ysh stdout] Expected 'one\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
ysh7 io.glob() respects shell filters

[ysh stdout] Expected '(List) ["foo.md","foo.txt"]\n(List) ["-foo.txt",".gitignore","foo.md","foo.txt"]\n(List) ["-foo.txt",".gitignore","foo.txt"]\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
ysh8 io.libcGlob() does not respect shell filters

[ysh stdout] Expected '(List) ["-foo.txt","foo.txt"]\n(List) ["-foo.txt","foo.txt"]\n(List) ["-foo.txt","foo.txt"]\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value