Browse Source

Merge branch 'verify' of github.com:TechEmpower/FrameworkBenchmarks into verify

Keith R. Gustafson 11 years ago
parent
commit
f6bf3f0505
1 changed files with 7 additions and 22 deletions
  1. 7 22
      toolset/run-tests.py

+ 7 - 22
toolset/run-tests.py

@@ -52,32 +52,18 @@ def main(argv=None):
     databaUser = os.getenv('TFB_DATABASE_USER', clientUser)
     dbIdenFile = os.getenv('TFB_DATABASE_IDENTITY_FILE', clientIden)
 
-    if serverHost != None:
-        defaults["server-host"] = serverHost
-    if clientHost != None:
-        defaults["client-host"] = clientHost
-    if clientUser != None:
-        defaults["client-user"] = clientUser
-    if clientIden != None:
-        defaults["client-identity-file"] = clientIden
-    if databaHost != None:
-        defaults["--database-host"] = databaHost
-    if databaUser != None:
-        defaults["--database-user"] = databaUser
-    if dbIdenFile != None:
-        defaults["--database-identity-file"] = dbIdenFile
-
     ##########################################################
     # Set up argument parser
     ##########################################################
     parser = argparse.ArgumentParser(description='Run the Framework Benchmarking test suite.',
         parents=[conf_parser])
-    parser.add_argument('client-host', help='The client / load generation server.')
-    parser.add_argument('client-user', help='The username to use for SSH to the client instance.')
-    parser.add_argument('client-identity-file', help='The key to use for SSH to the client instance.')
-    parser.add_argument('--database-host', help='The database server.  If not provided, defaults to the value of --client-host.')
-    parser.add_argument('--database-user', help='The username to use for SSH to the database instance.  If not provided, defaults to the value of --client-user.')
-    parser.add_argument('--database-identity-file', dest='database_identity_file', help='The key to use for SSH to the database instance.  If not provided, defaults to the value of --client-identity-file.')
+    parser.add_argument('-s', '--server-host', default=serverHost, help='The application server.')
+    parser.add_argument('-c' ,'--client-host', default=clientHost, help='The client / load generation server.')
+    parser.add_argument('-u', '--client-user', default=clientUser, help='The username to use for SSH to the client instance.')
+    parser.add_argument('-i', '--client-identity-file', default=clientIden, help='The key to use for SSH to the client instance.')
+    parser.add_argument('-d', '--database-host', default=databaHost, help='The database server.  If not provided, defaults to the value of --client-host.')
+    parser.add_argument('--database-user', default=databaUser, help='The username to use for SSH to the database instance.  If not provided, defaults to the value of --client-user.')
+    parser.add_argument('--database-identity-file', default=dbIdenFile, dest='database_identity_file', help='The key to use for SSH to the database instance.  If not provided, defaults to the value of --client-identity-file.')
     parser.add_argument('-p', dest='password_prompt', action='store_true')
     parser.add_argument('--install-software', action='store_true', help='runs the installation script before running the rest of the commands')
     parser.add_argument('--install', choices=['client', 'database', 'server', 'all'], default='all', help='Allows you to only install the server, client, or database software')
@@ -101,7 +87,6 @@ def main(argv=None):
     parser.add_argument('--database-os', choices=['linux', 'windows'], default='linux', help='The operating system of the database server.')
     parser.add_argument('-v', '--verbose', action='store_true', default=False, help='Causes the configuration to print before any other commands are executed.')
     parser.set_defaults(**defaults) # Must do this after add, or each option's default will override the configuration file default
-
     args = parser.parse_args(remaining_argv)
 
     if args.verbose: