devtools/stresstester.py
changeset 8695 358d8bed9626
parent 7815 2a164a9cf81c
child 10589 7c23b7de2b8d
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
   130     """run the command line tool"""
   130     """run the command line tool"""
   131     try:
   131     try:
   132         opts, args = getopt.getopt(args, 'hn:t:u:p:P:o:', ['help', 'user=', 'password=',
   132         opts, args = getopt.getopt(args, 'hn:t:u:p:P:o:', ['help', 'user=', 'password=',
   133                                                            'nb-times=', 'nb-threads=',
   133                                                            'nb-times=', 'nb-threads=',
   134                                                            'profile', 'report-output=',])
   134                                                            'profile', 'report-output=',])
   135     except Exception, ex:
   135     except Exception as ex:
   136         print ex
   136         print ex
   137         usage(1)
   137         usage(1)
   138     repeat = 100
   138     repeat = 100
   139     threads = 1
   139     threads = 1
   140     user = os.environ.get('USER', os.environ.get('LOGNAME'))
   140     user = os.environ.get('USER', os.environ.get('LOGNAME'))