Do not exit when fail to load the recipe
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 29 Apr 2018 08:32:50 +0000 (10:32 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 29 Apr 2018 08:32:50 +0000 (10:32 +0200)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
test.py

diff --git a/test.py b/test.py
index 89fe75c..c2d62ce 100755 (executable)
--- a/test.py
+++ b/test.py
@@ -84,9 +84,11 @@ class test():
     def load_recipe(self):
         try:
             self.recipe = recipe(self.recipe_file)
-        except BaseException:
+            for line in self.recipe.recipe:
+                self.log.debug(line)
+        except BaseException as e:
             self.log.error("Failed to load recipe")
-            exit(1)
+            raise e
 
     def run_recipe(self):
         for line in self.recipe.recipe: