From: Jonatan Schlag Date: Thu, 14 Jun 2018 07:13:54 +0000 (+0200) Subject: Raise an exception when we do no found important files of a test X-Git-Url: http://git.ipfire.org/?p=nitsi.git;a=commitdiff_plain;h=250db3b178d6ae13e7c3780b3672ef4140c4e2b0 Raise an exception when we do no found important files of a test Signed-off-by: Jonatan Schlag --- diff --git a/src/nitsi/test.py b/src/nitsi/test.py index 7f6b868..5682752 100755 --- a/src/nitsi/test.py +++ b/src/nitsi/test.py @@ -32,10 +32,12 @@ class Test(): 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)) + raise TestException("No settings file found") self.recipe_file = "{}/recipe".format(self.path) if not os.path.isfile(self.recipe_file): self.log.error("No such file: {}".format(self.recipe_file)) + raise TestException("No recipe file found") def read_settings(self): self.config = configparser.ConfigParser()