-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a new Mason environment variable instead of a set location
Adds `MASON_LICENSE_CACHE_PATH` as something that Mason understands, and when it is specified, use it with `--reference-if-able` when downloading the license repository. Updates the test EXECENV to set this environment variable to REPO_CACHE_PATH, which we use for other cached repositories in nightly testing, but only if that environment variable is defined. This should allow fellow team members to not have to set this environment variable (because they probably won't need it) ---- Signed-off-by: Lydia Duncan <lydia-duncan@users.noreply.github.com>
- Loading branch information
1 parent
56e7575
commit fc8122a
Showing
3 changed files
with
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
|
||
# Ensure mason in PATH | ||
PATH=$CHPL_HOME/bin/$CHPL_HOST_BIN_SUBDIR:$PATH | ||
print('PATH=$CHPL_HOME/bin/$CHPL_HOST_BIN_SUBDIR:$PATH') | ||
|
||
# Mason envs | ||
MASON_HOME=$PWD/mason_home | ||
print('MASON_HOME=$PWD/mason_home') | ||
|
||
# Note, this registry should only ever be used by mason update tests | ||
MASON_REGISTRY=registry|https://github.com/chapel-lang/mason-registry | ||
MASON_OFFLINE=false | ||
SPACK_ROOT=$PWD/mason_home/spack | ||
|
||
print('MASON_REGISTRY=registry|https://github.com/chapel-lang/mason-registry') | ||
print('MASON_OFFLINE=false') | ||
print('SPACK_ROOT=$MASON_HOME/spack') | ||
|
||
cachePath = os.getenv('REPO_CACHE_PATH', default='') | ||
if cachePath != '': | ||
print('MASON_LICENSE_CACHE_PATH=' + cachePath) |
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