diff --git a/scripts/run_integration.sh b/scripts/run_integration.sh index 5df92ea..dfead08 100755 --- a/scripts/run_integration.sh +++ b/scripts/run_integration.sh @@ -97,18 +97,16 @@ function integrate() { if [[ "${QEMU_ARCH}" == "DISABLED" ]]; then return fi + RUN_CMD="" if [[ -n "${QEMU_ARCH}" ]]; then installqemuifneeded - QEMU="${QEMU_INSTALL}/bin/qemu-${QEMU_ARCH} ${QEMU_ARGS}" - for test_binary in ${BUILD_DIR}/test/*_test; do - ${QEMU} ${test_binary} - done - ${QEMU} ${DEMO} - else - export CTEST_OUTPUT_ON_FAILURE=1 - cmake --build "${BUILD_DIR}" ${CMAKE_TEST_ARGS} - ${DEMO} + RUN_CMD="${QEMU_INSTALL}/bin/qemu-${QEMU_ARCH} ${QEMU_ARGS}" fi + for test_binary in ${BUILD_DIR}/test/*_test; do + ${RUN_CMD} ${test_binary} & + done + wait -n + ${RUN} ${DEMO} } function expand_linaro_config() {