#!/usr/bin/python3
-from nitsi.test import test
-from nitsi.logger import init_logging
-import logging
import argparse
+import logging
+from nitsi.logger import init_logging
from nitsi.recipe import RecipeExeption
-
-from nitsi.test import TestException
+from nitsi.test import TestException, test
logger = logging.getLogger("nitsi")
logger.setLevel(logging.DEBUG)
currenttest.load_recipe()
except RecipeExeption as e:
logger.exception(e)
- exit(2)
+ return 2
try:
currenttest.virtual_environ_start()
return 0
if __name__ == "__main__":
- main()
\ No newline at end of file
+ return_value = main()
+ logger.debug("Return value of main is: {}".format(return_value))
+ exit(return_value)