1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00

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
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-03-29 22:39:08 +02:00
parent d66b77b4d8
commit c3a053c241

View File

@ -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 % '%' )