Browse Source

Use properly typed variables

Hamilton Turner 10 years ago
parent
commit
a0c18da86f
1 changed files with 6 additions and 6 deletions
  1. 6 6
      toolset/run-tests.py

+ 6 - 6
toolset/run-tests.py

@@ -180,18 +180,18 @@ def main(argv=None):
         print 'Configuration options: '
         print 'Configuration options: '
         pprint(vars(args))
         pprint(vars(args))
 
 
-
-
     benchmarker = Benchmarker(vars(args))
     benchmarker = Benchmarker(vars(args))
 
 
     # Run the benchmarker in the specified mode
     # Run the benchmarker in the specified mode
-    if benchmarker.list_tests:
+    #   Do not use benchmarker variables for these checks, 
+    #   they are either str or bool based on the python version
+    if args.list_tests:
       benchmarker.run_list_tests()
       benchmarker.run_list_tests()
-    elif benchmarker.list_test_metadata:
+    elif args.list_test_metadata:
       benchmarker.run_list_test_metadata()
       benchmarker.run_list_test_metadata()
-    elif benchmarker.parse != None:
+    elif args.parse != None:
       benchmarker.parse_timestamp()
       benchmarker.parse_timestamp()
-    elif not benchmarker.install_only:
+    elif not args.install_only:
       return benchmarker.run()
       return benchmarker.run()
 
 
 if __name__ == "__main__":
 if __name__ == "__main__":