diff --git a/systemtests/test_flights.py b/systemtests/test_flights.py index 22b073649..b85a2d1f6 100644 --- a/systemtests/test_flights.py +++ b/systemtests/test_flights.py @@ -178,16 +178,16 @@ def test_figure8(self): if __name__ == '__main__': - # from argparse import ArgumentParser - # import sys - # parser = ArgumentParser(description="Runs (real or simulated) flight tests with pytest framework") - # parser.add_argument("--sim", action="store_true", help="Runs the test from the simulation backend") - # args, other_args = parser.parse_known_args() - # if args.sim : - # TestFlights.SIM = True + from argparse import ArgumentParser + import sys + parser = ArgumentParser(description="Runs (real or simulated) flight tests with pytest framework") + parser.add_argument("--sim", action="store_true", help="Runs the test from the simulation backend") + args, other_args = parser.parse_known_args() + if args.sim : + TestFlights.SIM = True - # unittest.main(argv=[sys.argv[0]] + other_args) + unittest.main(argv=[sys.argv[0]] + other_args) - TestFlights.SIM = True - unittest.main() \ No newline at end of file + # TestFlights.SIM = True + # unittest.main() \ No newline at end of file