From bd7a06dc31954cbbb0498013c4fe59f2e6f6b65c Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 2 Sep 2024 16:24:35 +0200 Subject: [PATCH] test: don't install Python scripts from systemd-test RPM The original regex didn't cover the `run-unit-tests.py` script that made the old framework pull in Python into the test image, which in turn allowed the new TEST-69-SHUTDOWN Python script to get executed in the old framework's image, causing unexpected fails with latest Python on Rawhide. --- test/test-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-functions b/test/test-functions index 8f08d84ad81..33e41a1aaa5 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1239,7 +1239,7 @@ install_package_file() { # in the whole python stack in a very questionable state, making the tests fail. # And given we're trying to transition to mkosi-based images anyway I'm not even # going to bother - [[ "$file" =~ /tests/unit-tests/.*.py$ ]] && return 0 + [[ "$file" =~ /tests/.*.py$ ]] && return 0 # If the current file is a directory, create it with the original # mode; if it's a symlink to a directory, copy it as-is if [[ -d "$file" ]]; then -- 2.47.3