diff --git a/Tools/sitl_run.sh b/Tools/sitl_run.sh index 0ae6187d7c..5a90cf949d 100755 --- a/Tools/sitl_run.sh +++ b/Tools/sitl_run.sh @@ -98,7 +98,7 @@ pushd "$rootfs" >/dev/null # Do not exit on failure now from here on because we want the complete cleanup set +e -if [[ ${model} == tests* ]]; then +if [[ ${model} == tests* ]] || [[ ${model} == *_generated ]]; then sitl_command="$sitl_bin $no_pxh $src_path/ROMFS/px4fmu_test -s ${src_path}/${rcS_path}/${model} -t $src_path/test_data" else sitl_command="$sitl_bin $no_pxh $src_path/ROMFS/px4fmu_common -s etc/init.d-posix/rcS -t $src_path/test_data"