Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7769 from fstagni/90_test_cvmfs_dir
Browse files Browse the repository at this point in the history
[9.0] test: add CVMFS_DIR to config
  • Loading branch information
chrisburr authored Aug 29, 2024
2 parents dffbf15 + 493b60d commit cba6173
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,7 @@ def _make_env(flags):
env["MYSQL_VER"] = flags.pop("MYSQL_VER", DEFAULT_MYSQL_VER)
env["ES_VER"] = flags.pop("ES_VER", DEFAULT_ES_VER)
env["IAM_VER"] = flags.pop("IAM_VER", DEFAULT_IAM_VER)
if Path("/cvmfs").is_dir():
env["CVMFS_DIR"] = "/cvmfs"
else:
if "CVMFS_DIR" not in env or not Path(env["CVMFS_DIR"]).is_dir():
# create a directory in tmp
with tempfile.TemporaryDirectory() as tmpdir:
env["CVMFS_DIR"] = tmpdir
Expand Down Expand Up @@ -1162,7 +1160,7 @@ def _make_config(modules, flags, release_var, editable):
config["PIP_INSTALL_EXTRA_ARGS"] = "-e"

required_feature_flags = []
for module_name, module_ci_config in _load_module_configs(modules).items():
for _, module_ci_config in _load_module_configs(modules).items():
config |= module_ci_config["config"]
required_feature_flags += module_ci_config.get("required-feature-flags", [])
config["DIRAC_CI_SETUP_SCRIPT"] = "/home/dirac/LocalRepo/TestCode/" + config["DIRAC_CI_SETUP_SCRIPT"]
Expand Down
1 change: 1 addition & 0 deletions tests/.dirac-ci-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
config:
DIRAC_CI_SETUP_SCRIPT: DIRAC/tests/Jenkins/dirac_ci.sh
CVMFS_DIR: /cvmfs
CLIENT_UPLOAD_BASE64: SSBsaWtlIHBpenphIQo=
CLIENT_UPLOAD_LFN: LFN:/vo/test_lfn.txt
CLIENT_UPLOAD_FILE: test_lfn.txt
Expand Down

0 comments on commit cba6173

Please sign in to comment.