From 1cdaacdaa16fc8c4ccac86ef771d08690cfe82dc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 25 Mar 2015 22:36:05 -0700 Subject: [PATCH] autotest: avoid a px4-clean for each vehicle type --- Tools/scripts/build_binaries.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Tools/scripts/build_binaries.sh b/Tools/scripts/build_binaries.sh index aa4d8b5424..de8dd87547 100755 --- a/Tools/scripts/build_binaries.sh +++ b/Tools/scripts/build_binaries.sh @@ -148,7 +148,6 @@ build_arduplane() { return } skip_build $tag $ddir || { - make px4-clean && make px4 || { echo "Failed build of ArduPlane PX4 $tag" error_count=$((error_count+1)) @@ -184,7 +183,6 @@ build_arducopter() { popd return } - make px4-clean || return rm -rf ../Build.ArduCopter for f in $frames; do echo "Building ArduCopter PX4-$f binaries" @@ -231,7 +229,6 @@ build_rover() { return } skip_build $tag $ddir || { - make px4-clean && make px4 || { echo "Failed build of APMrover2 PX4 $tag" error_count=$((error_count+1)) @@ -275,7 +272,6 @@ build_antennatracker() { return } skip_build $tag $ddir || { - make px4-clean && make px4 || { echo "Failed build of AntennaTracker PX4 $tag" error_count=$((error_count+1)) @@ -291,6 +287,11 @@ build_antennatracker() { popd } +# make sure PX4 is rebuilt from scratch +pushd ArduPlane +make px4-clean || exit 1 +popd + for build in stable beta latest; do build_arduplane $build build_arducopter $build