]> git.ipfire.org Git - nitsi.git/blobdiff - src/nitsi/test.py
Format the name in the log file always with the same length
[nitsi.git] / src / nitsi / test.py
index 413518e72c68e1d8444ac5a568f3d26af7e62f17..ecbe5f059795731ab1151520b655eefdcc2c6d96 100755 (executable)
@@ -78,10 +78,15 @@ class test():
         # Time to which all serial output log entries are relativ
         log_start_time = time.time()
 
+        # Number of chars of the longest machine name
+        longest_machine_name = self.virtual_environ.longest_machine_name
+
         self.log.debug("Try to login on all machines")
         for name in self.virtual_environ.machine_names:
             self.log.debug("Try to login on {}".format(name))
-            self.virtual_machines[name].login("{}/test.log".format(self.log_path), log_start_time)
+            self.virtual_machines[name].login("{}/test.log".format(self.log_path),
+                                                log_start_time=log_start_time,
+                                                longest_machine_name=longest_machine_name)
 
     def load_recipe(self):
         self.log.info("Going to load the recipe")