Results for ysh-env.test.sh

statusoshosh_ALT
pass 99
FAIL 22
total1111
caseoshosh_ALTdescription
0pass pass Can read from ENV Obj
1pass pass ENV works in different modules
2pass pass bin/ysh doesn't have exported vars (declare -x)
3FAIL FAIL Temp bindings A=a B=b my-command push to ENV Obj (ysh:all)
detailsdetails
4FAIL FAIL Nested temp bindings
detailsdetails
5pass pass setglobal ENV.PYTHONPATH = 'foo' changes child process state
6pass pass export builtin is disabled in ysh:all, in favor of setglobal
7pass pass ysh:upgrade can use both export builtin and setglobal ENV
8pass pass PS4 environment variable is respected
9pass pass ENV.HOME is respected
10pass pass exec builtin respects ENV
18 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 40759: command.Pipeline failed with status 1
osh_ALT3 Temp bindings A=a B=b my-command push to ENV Obj (ysh:all)

[osh_ALT stdout] Expected '_A=a\n_B=b\n', got ''
[osh_ALT status] Expected 0, got 1

stdout:
stderr: 
  _A=a _B=b env | grep '^_' | sort
                  ^~~~
[ stdin ]:3: errexit PID 40765: 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 40769: command.Simple failed with status 1
    env | egrep 'AA|BB'
          ^~~~~
[ stdin ]:20: errexit PID 40769: command.Pipeline failed with status 1
osh_ALT4 Nested temp bindings

[osh_ALT 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_ALT 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 40778: command.Simple failed with status 1
    env | egrep 'AA|BB'
          ^~~~~
[ stdin ]:20: errexit PID 40778: command.Pipeline failed with status 1