diff --git a/Testing/preprocess.py b/Testing/preprocess.py index f2dadec8..806a9fb2 100755 --- a/Testing/preprocess.py +++ b/Testing/preprocess.py @@ -1,18 +1,18 @@ -import argparse -import TestScripts.NewParser as parse -import pickle - -parser = argparse.ArgumentParser(description='Parse test description') - -parser.add_argument('-f', nargs='?',type = str, default=None, help="Test description file path") - -parser.add_argument('-o', nargs='?',type = str, default="Output.pickle", help="output file for parsed description") - -args = parser.parse_args() - -if args.f is not None: - p = parse.Parser() - # Parse the test description file - root = p.parse(args.f) - with open(args.o,"wb") as output: - pickle.dump(root, output) +import argparse +import TestScripts.NewParser as parse +import pickle + +parser = argparse.ArgumentParser(description='Parse test description') + +parser.add_argument('-f', nargs='?',type = str, default=None, help="Test description file path") + +parser.add_argument('-o', nargs='?',type = str, default="Output.pickle", help="output file for parsed description") + +args = parser.parse_args() + +if args.f is not None: + p = parse.Parser() + # Parse the test description file + root = p.parse(args.f) + with open(args.o,"wb") as output: + pickle.dump(root, output)