Index: local/run.coco.sh =================================================================== diff -u -r977e1d63d67abcdd732ed425110aacb17b6f496b -r8282a3b83ec6df5faf0f9400c59217a4af3effdd --- local/run.coco.sh (.../run.coco.sh) (revision 977e1d63d67abcdd732ed425110aacb17b6f496b) +++ local/run.coco.sh (.../run.coco.sh) (revision 8282a3b83ec6df5faf0f9400c59217a4af3effdd) @@ -154,20 +154,29 @@ fi } +function tests_run_one() { + test=$1 + pushd $BUILD_PATH/$test + if [ "$test" == "$DENALI_SQUISH" ]; then + server_squish_start + server_squish_run + server_squish_stop + else + $BUILD_PATH/$test/$test \ + 2> $LOG_PATH/$test.err \ + | tee $REPORT_QTTEST/$test.report + fi + popd +} + function tests_run() { - for test in ${QT_TESTS_LIST[@]};do - pushd $BUILD_PATH/$test - if [ "$test" == "$DENALI_SQUISH" ]; then - server_squish_start - server_squish_run - server_squish_stop - else - $BUILD_PATH/$test/$test \ - 2> $LOG_PATH/$test.err \ - | tee $REPORT_QTTEST/$test.report - fi - popd - done + if [[ "$1" != "" ]]; then + tests_run_one "$1" + else + for test in ${QT_TESTS_LIST[@]};do + tests_run_one $test + done + fi } ##### ---------- COVERAGE --------------------------------------------------------------------------------------------- @@ -277,7 +286,7 @@ rm -frd $USB_DRIVE_PATH rm -frd $SD_CARD_PATH tests_read_list - tests_run + tests_run $2 fi