-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow configuring path to node during runtests.sh
Summary: the custom resolver tests are relying on node from the path, but it can be helpful to override the path. this diff introduces a `FLOW_NODE_BINARY` environment variable which you can point at a custom node: ``` FLOW_NODE_BINARY=path/to/node ./runtests.sh path/to/flow ``` This is accomplished via a wrapper script, `scripts/tests_bin/node`, which calls `$FLOW_NODE_BINARY`. `runtests.sh` sets the var to `NODE_BINARY` if it's set, or `which node` if not. `scripts/tests_bin` is added to `PATH` when running the tests, so `node` in tests picks up the wrapper. Reviewed By: gabelevi Differential Revision: D12964367 fbshipit-source-id: ef98fb1f89c6a32f04ef36ebb315a604f01c5e9e
- Loading branch information
1 parent
94ffd92
commit 46b9055
Showing
2 changed files
with
10 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# FLOW_NODE_BINARY is set by runtests.sh | ||
exec "$FLOW_NODE_BINARY" "$@" |