From e85ded91be1a8e7087176194dd290a58596de3a7 Mon Sep 17 00:00:00 2001 From: Srikanth Muppandam Date: Thu, 4 Jun 2026 10:17:30 +0530 Subject: [PATCH] OpenCV: fix YAML arguments for flag-style options The OpenCV LAVA definition passes boolean option values directly to run.sh, for example "--list 0" and "--shuffle 0". The OpenCV runner treats these as flag-style options, so "--list 0" enables list-only mode and leaves the trailing "0" as an unknown argument. This causes the suite to run with --gtest_list_tests by default instead of executing the tests. Update OpenCV.yaml while preserving the existing direct run.steps style: - pass --list only when LIST_ONLY=1 - pass --shuffle only when SHUFFLE=1 - pass --seed only when SEED is set - use TIMEOUT_SECS consistently - use PERF_TO_TESTS consistently - use the correct --perf-to-tests option name This removes unknown argument warnings and ensures the default LAVA run executes OpenCV tests instead of only listing them. Signed-off-by: Srikanth Muppandam --- Runner/suites/Multimedia/OpenCV/OpenCV.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runner/suites/Multimedia/OpenCV/OpenCV.yaml b/Runner/suites/Multimedia/OpenCV/OpenCV.yaml index 55a2545e..5a1c5023 100644 --- a/Runner/suites/Multimedia/OpenCV/OpenCV.yaml +++ b/Runner/suites/Multimedia/OpenCV/OpenCV.yaml @@ -26,5 +26,5 @@ run: steps: - REPO_PATH=$PWD - cd Runner/suites/Multimedia/OpenCV - - ./run.sh --bin "${BIN_PATH}" --build-dir "${BUILD_DIR}" --cwd "${CWD}" --testdata "${TESTDATA_PATH}" --args "${EXTRA_ARGS}" --timeout "${TIMEOUT_SEC}" --suite "${SUITE}" --list "${LIST_ONLY}" --repeat "${REPEAT}" --shuffle "${SHUFFLE}" --seed "{SEED}" --perf-args "${PERF_ARGS}" --perf-to-test "${PERF_TO_TEST}" || true + - ./run.sh --bin "${BIN_PATH}" --build-dir "${BUILD_DIR}" --cwd "${CWD}" --testdata "${TESTDATA_PATH}" --args "${EXTRA_ARGS}" --timeout "${TIMEOUT_SECS}" --suite "${SUITE}" $( [ "${LIST_ONLY}" = "1" ] && printf '%s' "--list" ) --repeat "${REPEAT}" $( [ "${SHUFFLE}" = "1" ] && printf '%s' "--shuffle" ) $( [ -n "${SEED}" ] && printf '%s %s' "--seed" "${SEED}" ) --perf-args "${PERF_ARGS}" $( [ "${PERF_TO_TESTS}" = "1" ] && printf '%s' "--perf-to-tests" ) || true - $REPO_PATH/Runner/utils/send-to-lava.sh OpenCV.res || true