mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09: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:
@@ -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 % '%' )
|
||||
|
||||
Reference in New Issue
Block a user