aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-09-19 10:43:56 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-09-19 10:43:56 +0200
commit0e85d0b2fecb40be3239582bffd710358de08858 (patch)
treeae9f59576b214bd5d061f23855eb533d883702c1
parent4110878053aebf4afbf2d6371d4e6d5375926bb1 (diff)
downloadallocbench-0e85d0b2fecb40be3239582bffd710358de08858.tar.gz
allocbench-0e85d0b2fecb40be3239582bffd710358de08858.zip
add perm substitution for benchmarks with empty args
-rw-r--r--src/benchmark.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index d43c549..798cbd6 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -369,6 +369,8 @@ class Benchmark:
if perm:
substitutions.update(perm._asdict())
substitutions["perm"] = ("{}-"*(len(perm)-1) + "{}").format(*perm)
+ else:
+ substitutions["perm"] = ""
cmd_argv = self.cmd.format(**substitutions)
cmd_argv = src.util.prefix_cmd_with_abspath(cmd_argv).split()