Skip to content

Commit

Permalink
Tools: autotest: all autotest classes now take a frame
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Feb 9, 2019
1 parent 77e4e5a commit f3cbf72
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions Tools/autotest/autotest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand All @@ -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':
Expand All @@ -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()
Expand Down

0 comments on commit f3cbf72

Please sign in to comment.