aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-08-24 18:07:40 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-08-24 18:07:40 +0200
commit110bcf125084808a959d3d84c5593caee1ac5555 (patch)
tree26426dc8f3baf566403aa1f2d36002662ef24a28
parentde7208a60eca11aa8014e3a9b698e092322aea88 (diff)
downloadallocbench-110bcf125084808a959d3d84c5593caee1ac5555.tar.gz
allocbench-110bcf125084808a959d3d84c5593caee1ac5555.zip
delete lld-test archive after successful extraction
-rw-r--r--src/benchmarks/lld.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/benchmarks/lld.py b/src/benchmarks/lld.py
index 0d5c298..62be467 100644
--- a/src/benchmarks/lld.py
+++ b/src/benchmarks/lld.py
@@ -55,6 +55,11 @@ class BenchmarkLld(Benchmark):
p = subprocess.run(["tar", "xf", test_archive], stdout=subprocess.PIPE,
stderr=subprocess.PIPE, universal_newlines=True)
+ # delete archive
+ if p.returncode == 0:
+ os.remove(test_archive)
+
+
self.args["test"] = os.listdir(test_dir)
return True