From 9aa6acc4762fab3125f0de1182db1dc31721db14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Po=C5=82awski?= Date: Wed, 11 Sep 2024 18:22:14 +0200 Subject: [PATCH] Tests: Disable TOML write tests on c10s Recently tomli_w package has been removed from c10s and calling it in python will fail. This commit excludes related tests from being executed. --- tests/unit-tests/run-unit-tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit-tests/run-unit-tests.sh b/tests/unit-tests/run-unit-tests.sh index b2400b2..16bc449 100755 --- a/tests/unit-tests/run-unit-tests.sh +++ b/tests/unit-tests/run-unit-tests.sh @@ -45,6 +45,12 @@ if ([ "${ID}" == "rhel" ] || [ "${ID}" == "centos" ]) && [ "${VERSION_ID%%.*}" = TEST_SELECTION_EXPR="${TEST_SELECTION_EXPR} and not (TestStages and test_qemu)" fi +if ([ "${ID}" == "rhel" ] || [ "${ID}" == "centos" ]) && [ "${VERSION_ID%%.*}" == "10" ]; then + # tomli_w package has been remowed so writin TOML config will fail + TEST_SELECTION_EXPR="${TEST_SELECTION_EXPR} and not (test_write_read)" +fi + + # Move to the directory with sources cd "${TMT_SOURCE_DIR}"