summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2024-09-02 16:24:35 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-09-02 20:26:57 +0200
commitbd7a06dc31954cbbb0498013c4fe59f2e6f6b65c (patch)
tree1fd41bafea2beb49499df30f2269155513e00ae3 /test
parentportable: ensure PORTABLE_FORCE_ATTACH works even when there is a leftover unit (diff)
downloadsystemd-bd7a06dc31954cbbb0498013c4fe59f2e6f6b65c.tar.xz
systemd-bd7a06dc31954cbbb0498013c4fe59f2e6f6b65c.zip
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.
Diffstat (limited to 'test')
-rw-r--r--test/test-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-functions b/test/test-functions
index 8f08d84ad8..33e41a1aaa 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