From 0e85d0b2fecb40be3239582bffd710358de08858 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 19 Sep 2019 10:43:56 +0200 Subject: add perm substitution for benchmarks with empty args --- src/benchmark.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/benchmark.py') 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() -- cgit v1.2.3