Tools: autotest: all autotest classes now take a frame
This commit is contained in:
parent
77e4e5a1c9
commit
f3cbf72f41
@ -371,14 +371,13 @@ def run_step(step):
|
||||
"gdb": opts.gdb,
|
||||
"gdbserver": opts.gdbserver,
|
||||
"breakpoints": opts.breakpoint,
|
||||
"frame": opts.frame,
|
||||
}
|
||||
if opts.speedup is not None:
|
||||
fly_opts["speedup"] = opts.speedup
|
||||
|
||||
if step == 'fly.ArduCopter':
|
||||
tester = arducopter.AutoTestCopter(binary,
|
||||
frame=opts.frame,
|
||||
**fly_opts)
|
||||
tester = arducopter.AutoTestCopter(binary, **fly_opts)
|
||||
return tester.autotest()
|
||||
|
||||
if step == 'fly.CopterAVC':
|
||||
@ -394,15 +393,11 @@ def run_step(step):
|
||||
return tester.autotest()
|
||||
|
||||
if step == 'drive.APMrover2':
|
||||
tester = apmrover2.AutoTestRover(binary,
|
||||
frame=opts.frame,
|
||||
**fly_opts)
|
||||
tester = apmrover2.AutoTestRover(binary, **fly_opts)
|
||||
return tester.autotest()
|
||||
|
||||
if step == 'drive.balancebot':
|
||||
tester = balancebot.AutoTestBalanceBot(binary,
|
||||
frame=opts.frame,
|
||||
**fly_opts)
|
||||
tester = balancebot.AutoTestBalanceBot(binary, **fly_opts)
|
||||
return tester.autotest()
|
||||
|
||||
if step == 'dive.ArduSub':
|
||||
@ -411,10 +406,7 @@ def run_step(step):
|
||||
|
||||
specific_test_to_run = find_specific_test_to_run(step)
|
||||
if specific_test_to_run is not None:
|
||||
return run_specific_test(specific_test_to_run,
|
||||
binary,
|
||||
frame=opts.frame,
|
||||
**fly_opts)
|
||||
return run_specific_test(specific_test_to_run, binary, **fly_opts)
|
||||
|
||||
if step == 'build.All':
|
||||
return build_all()
|
||||
|
Loading…
Reference in New Issue
Block a user