diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-29 22:39:08 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-03-29 22:39:32 +0200 |
commit | c3a053c24129bbb01557452466ecc503534bf734 (patch) | |
tree | ad36b0693f74116a8005fadf566719d0b850a787 | |
parent | test-copy: use non-0 data block in copy_holes (diff) | |
download | systemd-c3a053c24129bbb01557452466ecc503534bf734.tar.xz systemd-c3a053c24129bbb01557452466ecc503534bf734.zip |
test-systemctl-enable: skip test for %v if kver is not a valid instance
On arm, we'd fail with:
target@v:5.16.8-200.fc35.armv7hl+lpae.socket: not a valid unit name "target@v:5.16.8-200.fc35.armv7hl+lpae.socket": Invalid argument
-rw-r--r-- | test/test-systemctl-enable.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-systemctl-enable.sh b/test/test-systemctl-enable.sh index ac1bcc1cc7..f40831cf8c 100644 --- a/test/test-systemctl-enable.sh +++ b/test/test-systemctl-enable.sh @@ -648,7 +648,8 @@ check_alias N 'some-some-link6@' check_alias p 'some-some-link6' -check_alias v "$(uname -r)" +uname -r | grep -q '[^a-zA-Z0-9_.\\-]' || \ + check_alias v "$(uname -r)" # % is not legal in unit name ( ! check_alias % '%' ) |