This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 782847 - Pymake native commands don't pass the correct environmen…
…t to subprocesses. r=gps This change is technically backwards incompatible, but it brings native command behavior in line with subprocess behavior.
- Loading branch information
1 parent
1c62ab1
commit d343259
Showing
3 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#T gmake skip | ||
export EXPECTED := some data | ||
|
||
CMD = %pycmd writeenvtofile | ||
PYCOMMANDPATH = $(TESTPATH) | ||
|
||
all: | ||
$(CMD) results EXPECTED | ||
%pycmd writeenvtofile results EXPECTED | ||
test "$$(cat results)" = "$(EXPECTED)" | ||
%pycmd writesubprocessenvtofile results EXPECTED | ||
test "$$(cat results)" = "$(EXPECTED)" | ||
@echo TEST-PASS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters