Skip to content

Commit

Permalink
fix: create a fake cvmfs directory for local test
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Aug 14, 2024
1 parent 012496f commit a78c2da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,12 @@ 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:
# create a directory in tmp
Path("/tmp/cvmfs").mkdir(parents=True, exist_ok=True)
env["CVMFS_DIR"] = "/tmp/cvmfs"
return env


Expand Down
2 changes: 1 addition & 1 deletion tests/CI/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ services:
depends_on:
- dirac-server
volumes:
- /cvmfs:/cvmfs:ro
- ${CVMFS_DIR}:/cvmfs:ro
ulimits:
nofile: 8192
pull_policy: always
Expand Down

0 comments on commit a78c2da

Please sign in to comment.