aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-08-22 20:03:34 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-08-22 20:30:10 +0200
commita799b6e3996288ec9fb295bef5a5c4407f8da24c (patch)
treedccd91ce6c3a313f4a1285d4da52b65ff72e25da
parent46c9280aff29964db33a8a6c778618af9270e3b2 (diff)
downloadallocbench-a799b6e3996288ec9fb295bef5a5c4407f8da24c.tar.gz
allocbench-a799b6e3996288ec9fb295bef5a5c4407f8da24c.zip
add benchmark members to available substitutions
-rw-r--r--src/benchmark.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index 3174416..1805922 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -223,6 +223,7 @@ class Benchmark (object):
"perm": alloc_name,
"builddir": src.globalvars.builddir}
+ substitutions.update(self.__dict__)
substitutions.update(alloc)
for server_cmd in self.server_cmds:
@@ -313,6 +314,7 @@ class Benchmark (object):
# Available substitutions in cmd
substitutions = {"run": run}
+ substitutions.update(self.__dict__)
substitutions.update(perm._asdict())
substitutions["perm"] = ("{}-"*(len(perm)-1) + "{}").format(*perm)
substitutions.update(alloc)