Improve reliability of NO_COLOR tests. (#3188)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* Improve reliability of NO_COLOR tests. Use `env` to ensure that `NO_COLOR` is set to the desired value regardless of any initialization that may occur when `script` forks a shell to run jq in. Note that `env -u` is not portable, so there is no good solution for the first test case. * Always use /bin/sh, not the user's login shell.
authored by Dag-Erling Smørgrav · committed by GitHub · parent 32a304b · Browse files · 1 file+6 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+6 added−3 removed
- tests:+6 added−3 removed