Tools: autotest: all autotest classes now take a frame

This commit is contained in:
Peter Barker 2019-02-09 11:21:56 +11:00 committed by Peter Barker
parent 77e4e5a1c9
commit f3cbf72f41
1 changed files with 5 additions and 13 deletions

View File

@ -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()