Commit 9b00c5c4c51c513b09ae32b97a0fbd8ca8590d45 introduced reducing $PATH when executing junest env. However, when the trap function is invoked due to failed command, the $PATH will becomes empty within the context of create wrapper.
Here are what happens before the PR when the trapped create_wrappers function is invoked under a failed status
$ ./bin/junest -- true
$ echo $?
0
$ ./bin/junest -- false
/home/soraxas/junest/lib/core/wrappers.sh: line 23: mkdir: No such file or directory
$ echo $?
127
Commit 9b00c5c4c51c513b09ae32b97a0fbd8ca8590d45 introduced reducing
$PATH
when executing junest env. However, when the trap function is invoked due to failed command, the$PATH
will becomes empty within the context of create wrapper.Here are what happens before the PR when the trapped
create_wrappers
function is invoked under a failed status