Results for ysh-env.test.sh

statusoshosh-cpp
pass 99
FAIL 11
total1010
caseoshosh-cppdescription
0pass pass Can read from ENV Dict
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
4pass pass setglobal ENV.PYTHONPATH = 'foo' changes child process state
5pass pass export builtin is disabled in ysh:all, in favor of setglobal
6pass pass ysh:upgrade can use both export builtin and setglobal ENV
7pass pass PS4 environment variable is respected
8pass pass ENV.HOME is respected
9pass pass exec builtin respects ENV
18 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 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 29686: command.Pipeline failed with status 1
osh-cpp3 Temp bindings A=a B=b my-command push to ENV Obj (ysh:all)

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

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