Browse Source

Add install-only argument

Hamilton Turner 11 years ago
parent
commit
ba70d6c304
2 changed files with 3 additions and 1 deletions
  1. 1 0
      benchmark.cfg.example
  2. 2 1
      toolset/run-tests.py

+ 1 - 0
benchmark.cfg.example

@@ -12,6 +12,7 @@ exclude=None
 install=server
 install=server
 install_error_action=continue
 install_error_action=continue
 install_strategy=unified
 install_strategy=unified
+install_only=False
 list_test_metadata=False
 list_test_metadata=False
 list_tests=False
 list_tests=False
 max_concurrency=256
 max_concurrency=256

+ 2 - 1
toolset/run-tests.py

@@ -103,6 +103,7 @@ def main(argv=None):
     parser.add_argument('--install-strategy', choices=['unified', 'pertest'], default='unified', 
     parser.add_argument('--install-strategy', choices=['unified', 'pertest'], default='unified', 
         help='''Affects `--install server`: With unified, all server software is installed into a single directory. 
         help='''Affects `--install server`: With unified, all server software is installed into a single directory. 
         With pertest each test gets its own installs directory, but installation takes longer''')
         With pertest each test gets its own installs directory, but installation takes longer''')
+    parser.add_argument('--install-only', action='store_true', default=False, help='Do not run benchmark or verification, just install and exit')
 
 
     # Test options
     # Test options
     parser.add_argument('--test', nargs='+', help='names of tests to run')
     parser.add_argument('--test', nargs='+', help='names of tests to run')
@@ -157,7 +158,7 @@ def main(argv=None):
       benchmarker.run_list_test_metadata()
       benchmarker.run_list_test_metadata()
     elif benchmarker.parse != None:
     elif benchmarker.parse != None:
       benchmarker.parse_timestamp()
       benchmarker.parse_timestamp()
-    else:
+    elif not benchmarker.install_only:
       return benchmarker.run()
       return benchmarker.run()
 
 
 if __name__ == "__main__":
 if __name__ == "__main__":