Browse Source

Fix benchmark.log test header (#4841)

Nate 6 years ago
parent
commit
c309592284
1 changed files with 5 additions and 3 deletions
  1. 5 3
      toolset/benchmark/benchmarker.py

+ 5 - 3
toolset/benchmark/benchmarker.py

@@ -105,6 +105,11 @@ class Benchmarker:
         # Start timing the total test duration
         self.time_logger.mark_test_start()
 
+        if self.config.mode == "benchmark":
+            log("Benchmarking %s" % test.name,
+                file=benchmark_log,
+                border='-')
+
         # If the test is in the excludes list, we skip it
         if self.config.exclude and test.name in self.config.exclude:
             message = "Test {name} has been added to the excludes list. Skipping.".format(
@@ -185,9 +190,6 @@ class Benchmarker:
 
             # Benchmark this test
             if self.config.mode == "benchmark":
-                log("Benchmarking %s" % test.name,
-                    file=benchmark_log,
-                    border='-')
                 self.time_logger.mark_benchmarking_start()
                 self.__benchmark(test, benchmark_log)
                 self.time_logger.log_benchmarking_end(