]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: don't install Python scripts from systemd-test RPM
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 2 Sep 2024 14:24:35 +0000 (16:24 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 2 Sep 2024 18:26:57 +0000 (19:26 +0100)
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

index 8f08d84ad812386296de86fab881be276d699c93..33e41a1aaa5a3779b990ed2d1ee01ef6a6215988 100644 (file)
@@ -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