Use one time to which all serial connection output is relativ
[nitsi.git] / src / nitsi / test.py
index 96ce841..413518e 100755 (executable)
@@ -7,6 +7,8 @@ import os
 
 import configparser
 
+import time
+
 from nitsi.virtual_environ import virtual_environ
 from nitsi.recipe import recipe
 
@@ -73,10 +75,13 @@ class test():
             self.virtual_machines[name].copy_in(self.copy_from, self.copy_to)
             self.virtual_machines[name].start()
 
+        # Time to which all serial output log entries are relativ
+        log_start_time = time.time()
+
         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))
+            self.virtual_machines[name].login("{}/test.log".format(self.log_path), log_start_time)
 
     def load_recipe(self):
         self.log.info("Going to load the recipe")