-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nextest-runner] add support for setup scripts
- Loading branch information
1 parent
c3b868b
commit 0d55da7
Showing
31 changed files
with
2,917 additions
and
193 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
experimental = ["setup-scripts"] | ||
|
||
[profile.default] | ||
final-status-level = "slow" | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 @@ | ||
REM If this environment variable is set, exit with non-zero. | ||
if defined __NEXTEST_SETUP_SCRIPT_ERROR exit 1 | ||
|
||
ECHO MY_ENV_VAR=my-env-var>> %NEXTEST_ENV% |
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,9 @@ | ||
#!/bin/bash | ||
|
||
# If this environment variable is set, exit with non-zero. | ||
if [ ! -z "$__NEXTEST_SETUP_SCRIPT_ERROR" ]; then | ||
echo "__NEXTEST_SETUP_SCRIPT_ERROR is set, exiting with 1" | ||
exit 1 | ||
fi | ||
|
||
echo MY_ENV_VAR=my-env-var >> $NEXTEST_ENV |
Oops, something went wrong.