3c88b6a68190da40faef85cf9e6d59e40cc2a3b9
[nitsi.git] / nitsi
1 #!/usr/bin/python
2
3 from test import test
4
5 if __name__ == "__main__":
6     import argparse
7
8     parser = argparse.ArgumentParser()
9
10     parser.add_argument("-d", "--directory", dest="dir")
11
12     args = parser.parse_args()
13
14     currenttest = test(args.dir)
15     currenttest.read_settings()
16     currenttest.virtual_environ_setup()
17     currenttest.load_recipe()
18     try:
19         currenttest.virtual_environ_start()
20         currenttest.run_recipe()
21     except BaseException as e:
22         print(e)
23     finally:
24         currenttest.virtual_environ_stop()