aboutsummaryrefslogtreecommitdiff
path: root/src/artifact.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-09-23 13:42:05 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-09-23 13:42:05 +0200
commit6e019b83c2f82552704feb4d8ce18e0d3a19d75a (patch)
treeb7eefc7446120c0424018b3b65c50835f7a9b617 /src/artifact.py
parentcac85412d757b6054436dc9c63d30db645bc93ea (diff)
downloadallocbench-6e019b83c2f82552704feb4d8ce18e0d3a19d75a.tar.gz
allocbench-6e019b83c2f82552704feb4d8ce18e0d3a19d75a.zip
use ArchiveArtifacts for all benchmark resources
Diffstat (limited to 'src/artifact.py')
-rw-r--r--src/artifact.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/artifact.py b/src/artifact.py
index 49530a3..010bc6b 100644
--- a/src/artifact.py
+++ b/src/artifact.py
@@ -124,6 +124,10 @@ class ArchiveArtifact(Artifact):
if not location:
location = os.path.join(self.basedir, "content")
+ # Check if we already provided the archive at location
+ if os.path.exists(location):
+ return
+
os.makedirs(location, exist_ok=True)
# Extract archive