autotest: correct compilation of Replay in autotest suite
This commit is contained in:
parent
5e5ca6e02a
commit
c350268918
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user