sitl_run.sh: use correct ROMFS path for tests

This commit is contained in:
Beat Küng 2018-08-13 13:31:54 +02:00 committed by Daniel Agar
parent 83ea7fa45e
commit d2aa68f62c

View File

@ -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"