Results for ysh-blocks.test.sh

statusosh
FAIL 16
total16
caseoshdescription
0FAIL cd accepts a block, runs it in different dir
details
1FAIL cd with block: requires explicit command
details
2FAIL cd passed block with return 1
details
3FAIL cd passed a block defined in a different scope
details
4FAIL io->eval() and io.captureStdout() passed a block in different scope
details
5FAIL block doesn't have its own scope
details
6FAIL redirects allowed in words, typed args, and after block
details
7FAIL block literal in expression mode: ^(echo $PWD)
details
8FAIL block arg as typed expression
details
9FAIL Pass invalid typed args
details
10FAIL Pass too many typed args
details
11FAIL 'builtin' and 'command' with block
details
12FAIL Consistency: Exit Status and Blocks
details
13FAIL Consistency: Unwanted Blocks Are Errors
details
14FAIL Block with Bare Assignments
details
15FAIL Proc that doesn't take a block
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 16 failed, 0 timeouts, 0 cases skipped
16 failed under osh

Details on runs that didn't PASS

osh0 cd accepts a block, runs it in different dir

[osh stdout] Expected '/\nOLDPWD=\ndone\nPWD=/tmp\npwd builtin: /tmp\n' Got ''
[osh status] Expected 0, got 1
[osh 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_
osh1 cd with block: requires explicit command

[osh stdout] Expected '/tmp\n', got ''
[osh status] Expected 2, got 1
[osh 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_
osh2 cd passed block with return 1

[osh stdout] Expected 'block\n', got ''
[osh 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_
osh3 cd passed a block defined in a different scope

[osh status] Expected 0, got 1
[osh 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_
osh4 io->eval() and io.captureStdout() passed a block in different scope

[osh status] Expected 0, got 1
[osh 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_
osh5 block doesn't have its own scope

[osh stdout] Expected 'x=1\nx=42\nx=42\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh6 redirects allowed in words, typed args, and after block

[osh stdout] Expected '1 /tmp\n2 /tmp\n3 /tmp\n4 /tmp\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh7 block literal in expression mode: ^(echo $PWD)

[osh stdout] Expected '1\none\ntwo\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh8 block arg as typed expression

[osh stdout] Expected '/tmp\n/tmp\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh9 Pass invalid typed args

[osh status] Expected 3, got 1
[osh 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_
osh10 Pass too many typed args

[osh status] Expected 3, got 1
[osh 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_
osh11 'builtin' and 'command' with block

[osh stdout] Expected 'builtin /\ncommand /\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh12 Consistency: Exit Status and Blocks

[osh stdout] Expected 'cd=0\nshopt=0\n FOO=foo\nshvar=0\ntry=0\n', got ''
[osh status] Expected 0, got 1
[osh 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_
osh13 Consistency: Unwanted Blocks Are Errors

[osh stdout] Expected 'true 2\nfalse 2\necho block 2\necho args 2\ncommand echo 2\nbuiltin echo 2\npushd 2\n' Got ''
[osh status] Expected 0, got 1
[osh 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_
osh14 Block with Bare Assignments

[osh stdout] Expected 'rule foo-python\nrule foo-cc\nrule bar-python\nrule bar-cc\n' Got ''
[osh status] Expected 0, got 1
[osh 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_
osh15 Proc that doesn't take a block

[osh stdout] Expected 'task name=spam\nno block\nstatus=44\n\ntask name=foo\nrunning\nblock\nstatus=33\n' Got ''
[osh status] Expected 0, got 1
[osh 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_