autotest: correct compilation of Replay in autotest suite

This commit is contained in:
Peter Barker 2021-04-05 13:59:42 +10:00 committed by Peter Barker
parent 5e5ca6e02a
commit c350268918
2 changed files with 14 additions and 1 deletions

View File

@ -440,7 +440,7 @@ def run_step(step):
vehicle_binary = 'sitl_periph_gps.bin/AP_Periph'
if step == 'build.Replay':
return util.build_SITL('tools/Replay', clean=False, configure=False)
return util.build_replay(board='SITL')
if vehicle_binary is not None:
if len(vehicle_binary.split(".")) == 1:

View File

@ -150,6 +150,19 @@ def build_examples(board, j=None, debug=False, clean=False):
run_cmd(cmd_make, directory=topdir(), checkfail=True, show=True)
return True
def build_replay(board, j=None, debug=False, clean=False):
# first configure
waf_configure(board, j=j, debug=debug)
# then clean
if clean:
waf_clean()
# then build
cmd_make = [relwaf(), "replay"]
run_cmd(cmd_make, directory=topdir(), checkfail=True, show=True)
return True
def build_tests(board, j=None, debug=False, clean=False):
# first configure
waf_configure(board, j=j, debug=debug)