depot/pkgs/by-name/bm/bmake/003-fix-unexport-env-test.diff
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

13 lines
474 B
Diff

--- bmake/unit-tests/unexport-env.mk.orig 2021-05-27 14:44:45.263392298 +0200
+++ bmake/unit-tests/unexport-env.mk 2021-05-27 14:46:46.188881996 +0200
@@ -4,8 +4,8 @@
FILTER_CMD= grep ^UT_
.include "export.mk"
-# an example of setting up a minimal environment.
-PATH= /bin:/usr/bin:/sbin:/usr/sbin
+# preserve PATH so commands used in the "all" target are still available
+PATH := ${PATH}
# now clobber the environment to just PATH and UT_TEST
UT_TEST= unexport-env