~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/lib/test_run_options.py

Merge Patrick - 709646: --engine in dbqp.py is broken 
Merge Patrick - 717359: dbqp needs --repeat option

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
    variables = {}
52
52
    variables = vars(args)
53
53
    variables['test_cases']= test_cases
 
54
    # This code should become a function once
 
55
    # enough thought has been given to it
54
56
    if variables['manualgdb']:
55
57
        variables['gdb']=True
 
58
    if variables['repeat'] <= 0:
 
59
        print "Setting --repeat=1.  You chose a silly value that I will ignore :P"
 
60
        variables['repeat'] = 1
56
61
    return variables
57
62
 
58
63
# Create the CLI option parser
184
189
  , help = "sort the testcases so that they are executed optimally for the given mode [%default]"
185
190
  )
186
191
 
187
 
 
 
192
test_control_group.add_option(
 
193
    "--repeat"
 
194
  , dest="repeat"
 
195
  , type='int'
 
196
  , action="store"
 
197
  , default=1
 
198
  , help = "Run each test case the specified number of times.  For a given sequence, the first test will be run n times, then the second, etc [%default]"
 
199
  )
188
200
 
189
201
parser.add_option_group(test_control_group)
190
202
# end test_control_group