Results for ysh-env.test.sh

statusosh
pass 9
FAIL 2
total11
caseoshdescription
0pass Can read from ENV Obj
1pass ENV works in different modules
2pass bin/ysh doesn't have exported vars (declare -x)
3FAIL Temp bindings A=a B=b my-command push to ENV Obj (ysh:all)
details
4FAIL Nested temp bindings
details
5pass setglobal ENV.PYTHONPATH = 'foo' changes child process state
6pass export builtin is disabled in ysh:all, in favor of setglobal
7pass ysh:upgrade can use both export builtin and setglobal ENV
8pass PS4 environment variable is respected
9pass ENV.HOME is respected
10pass exec builtin respects ENV
9 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

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

stdout:
stderr: 
  _A=a _B=b env | grep '^_' | sort
                  ^~~~
[ stdin ]:3: errexit PID 38356: command.Pipeline failed with status 1
osh4 Nested temp bindings

[osh stdout] Expected '', got '> f1 AA=a\n f2 AA=aaaa BB=bb\nAA=aaaa\nBB=bb\n< f1 AA=a\n\n> p1 AA=null\n p2 AA=null BB=null\nAA=aaaa\nBB=bb\n< p1 AA=null\n\n> p1 AA=null\n p2 AA=null BB=null\n'
[osh status] Expected 0, got 1

stdout:
> f1 AA=a
  f2 AA=aaaa BB=bb
AA=aaaa
BB=bb
< f1 AA=a

> p1 AA=null
  p2 AA=null BB=null
AA=aaaa
BB=bb
< p1 AA=null

> p1 AA=null
  p2 AA=null BB=null
stderr:
    env | egrep 'AA|BB'
          ^~~~~
[ stdin ]:20: errexit PID 38362: command.Simple failed with status 1
    env | egrep 'AA|BB'
          ^~~~~
[ stdin ]:20: errexit PID 38362: command.Pipeline failed with status 1