]> git.ipfire.org Git - people/ms/nitsi.git/blobdiff - src/nitsi/test.py
Add logging to test.log of all serial connection output
[people/ms/nitsi.git] / src / nitsi / test.py
index f67ceb5e29b1d7da1cea9fc2437d13591a78dfac..96ce841083b01a965d8ecc2b3b9f79be4414b7df 100755 (executable)
@@ -24,6 +24,8 @@ class test():
 
         self.log.debug("Path of this test is: {}".format(self.path))
 
+        self.log_path = log_path
+
         self.settings_file = "{}/settings".format(self.path)
         if not os.path.isfile(self.settings_file):
             self.log.error("No such file: {}".format(self.settings_file))
@@ -74,7 +76,7 @@ class test():
         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()
+            self.virtual_machines[name].login("{}/test.log".format(self.log_path))
 
     def load_recipe(self):
         self.log.info("Going to load the recipe")