Fix return codes once again
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 16 May 2018 12:34:43 +0000 (14:34 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 16 May 2018 12:34:43 +0000 (14:34 +0200)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
nitsi.in

index 9296e19..fc1ce8e 100755 (executable)
--- a/nitsi.in
+++ b/nitsi.in
@@ -49,7 +49,7 @@ def main():
         currenttest.load_recipe()
     except RecipeExeption as e:
         logger.exception(e)
-        exit(2)
+        return 2
 
     try:
         currenttest.virtual_environ_start()
@@ -66,4 +66,6 @@ def main():
     return 0
 
 if __name__ == "__main__":
-    main()
+   return_value = main()
+   logger.debug("Return value of main is: {}".format(return_value))
+   exit(return_value)