Skip to content

Commit

Permalink
Update conftest.py
Browse files Browse the repository at this point in the history
directories creation (downloads)
  • Loading branch information
Elisa-Visentin committed Jul 6, 2023
1 parent 6b7a08b commit b215f76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions magicctapipe/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ def scp_file(path, url, env_prefix):
Download of test files through rsync
"""
pwd = os.environ[env_prefix + "PASSWORD"]
if not path.exists():
subprocess.run(["mkdir", "-p", str(path)])
if not (path / url.name).exists():
print("DOWNLOADING...")
cmd = f'''/bin/bash -c "rsync {str(url)} {str(path)}"'''
Expand Down

0 comments on commit b215f76

Please sign in to comment.