diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-09-19 10:43:56 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-09-19 10:43:56 +0200 |
| commit | 0e85d0b2fecb40be3239582bffd710358de08858 (patch) | |
| tree | ae9f59576b214bd5d061f23855eb533d883702c1 | |
| parent | 4110878053aebf4afbf2d6371d4e6d5375926bb1 (diff) | |
| download | allocbench-0e85d0b2fecb40be3239582bffd710358de08858.tar.gz allocbench-0e85d0b2fecb40be3239582bffd710358de08858.zip | |
add perm substitution for benchmarks with empty args
| -rw-r--r-- | src/benchmark.py | 2 |
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() |
