Results for ysh-env.test.sh

statusosh
FAIL 14
total14
caseoshdescription
0FAIL Can read from ENV Obj
details
1FAIL ENV works in different modules
details
2FAIL bin/ysh doesn't have exported vars (declare -x)
details
3FAIL Temp bindings A=a B=b my-command push to ENV Obj (ysh:all)
details
4FAIL Nested temp bindings
details
5FAIL Temp bindings can use locals in the same frame,(don't introduce new frame)
details
6FAIL setglobal ENV.PYTHONPATH = 'foo' changes child process state
details
7FAIL export builtin is disabled in ysh:all, in favor of setglobal
details
8FAIL ysh:upgrade can use both export builtin and setglobal ENV
details
9FAIL PS4 environment variable is respected
details
10FAIL ENV.HOME is respected
details
11FAIL exec builtin respects ENV
details
12FAIL setglobal quirk - do we need setenv?
details
13FAIL try to corrupt ENV var from user code
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 14 failed, 0 timeouts, 0 cases skipped
14 failed under osh

Details on runs that didn't PASS

osh0 Can read from ENV Obj

[osh stdout] Expected '(Str) "Obj"\nok\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 ENV works in different modules

[osh stdout] Expected 'env.ysh\nOSH ok\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_
osh2 bin/ysh doesn't have exported vars (declare -x)

[osh stdout] Expected 'OSH ok\nsh=null\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_
osh3 Temp bindings A=a B=b my-command push to ENV Obj (ysh:all)

[osh stdout] Expected '_A=a\n_B=b\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_
osh4 Nested temp bindings

[osh stdout] Expected '> f1 AA=a\n f2 AA=aaaa BB=bb\nAA=aaaa\nBB=bb\n< f1 AA=a\n\n> p1 AA=a\n p2 AA=aaaa BB=bb\nAA=aaaa\nBB=bb\n< p1 AA=a\n\n> p1 AA=a\n p2 AA=aaaa BB=bb\nAA=aaaa\nBB=bb\n< p1 AA=a\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_
osh5 Temp bindings can use locals in the same frame,(don't introduce new frame)

[osh stdout] Expected 'shfunc x=zzz FOO=\nshfunc x=zzz FOO=zzz\n\nysh x=zzz FOO= ENV.FOO=null\nysh x=zzz FOO= ENV.FOO=zzz\nysh x=zzz FOO= ENV.FOO=zzz\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 setglobal ENV.PYTHONPATH = 'foo' changes child process state

[osh stdout] Expected 'pythonpath=foo\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 export builtin is disabled in ysh:all, in favor of setglobal

[osh stdout] Expected 'ZZ=setglobal\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_
osh8 ysh:upgrade can use both export builtin and setglobal ENV

[osh stdout] Expected 'ZZ=export\nZZ=setglobal\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 PS4 environment variable is respected

[osh stdout] Expected '1\n2\n', got ''
[osh stderr] Expected '%%% echo 1\n%%% echo 2\n', 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'
[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_
osh10 ENV.HOME is respected

[osh stdout] Expected 'zz-osh/src\nysh-zz/src\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_
osh11 exec builtin respects ENV

[osh stdout] Expected 'child ZZ=zz\nexec ZZ=zz\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 setglobal quirk - do we need setenv?

[osh stdout] Expected '(Null) null\n(Str) "perm"\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 try to corrupt ENV var from user code

[osh stdout] Expected "(Str) 'aa'\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_