1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-07 07:02:53 +03:00

forward env vars through tpx

Summary:
The migration to tpx broke Watchman's tests because test_bser relies on YARN_YARN_OFFLINE_MIRROR being set in the environment and tpx doesn't forward environment variables into the test.

Explicitly forward them ourselves.

Reviewed By: fanzeyi

Differential Revision: D27897172

fbshipit-source-id: 16c8017a89979802bd9d443825ed4e22cb6ff6c9
This commit is contained in:
Chad Austin
2021-04-22 11:15:54 -07:00
committed by Facebook GitHub Bot
parent e57402c2e1
commit 50397de0ae

View File

@@ -746,6 +746,10 @@ if __name__ == "__main__":
"--print-long-results",
]
if tpx and env:
testpilot_args.append("--env")
testpilot_args.extend(f"{key}={val}" for key, val in env.items())
if owner:
testpilot_args += ["--contacts", owner]