From b7d1e047aa2e4a1246c6c4c579dde269266165b4 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 9 May 2016 12:11:32 +1000 Subject: [PATCH] sim_vehicle.py: correct binary to use for --debug --- Tools/autotest/sim_vehicle.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index 413b799456..a2ef9bc4e6 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -633,7 +633,11 @@ else: do_build(vehicledir, opts, frame_options) if opts.build_system == "waf": - vehicle_binary = os.path.join(vehicledir, "../build/sitl", frame_options["waf_target"]) + if opts.debug: + binary_basedir = "../build/sitl-debug" + else: + binary_basedir = "../build/sitl" + vehicle_binary = os.path.join(vehicledir, binary_basedir, frame_options["waf_target"]) else: vehicle_binary = os.path.join(vehicledir, opts.vehicle+".elf")