From 17bf3da7f7a9cb54ce28575db288e0a64879e0a0 Mon Sep 17 00:00:00 2001 From: Erik Winge Date: Mon, 30 May 2016 10:25:55 +0200 Subject: [PATCH] small fixes --- slipsomat.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/slipsomat.py b/slipsomat.py index a4eff2e..503ed90 100644 --- a/slipsomat.py +++ b/slipsomat.py @@ -76,8 +76,9 @@ def close(self): print("\nException closing driver:", e) def restart(self): - self.close() - self.connect() + if "config" in vars(self): # check for test mode + self.close() + self.connect() @staticmethod def read_config(): @@ -658,7 +659,7 @@ def do_push(self, arg): self.execute(push) def do_test(self, arg): - "Run Alma 'notification template' test" + "test filename : Run Alma 'notification template' test, using given XML file" self.execute_args(test_XML, arg) def complete_test(self, word, line, begin_idx, end_idx):