mirror of
https://github.com/systemd/systemd.git
synced 2024-11-28 04:33:36 +08:00
test: Simplify hostname checking
Both hostname and uname utilities boil down to uname(2) syscall. Reduce tests dependency footprint by using uname for checking hostname too.
This commit is contained in:
parent
bac567a53b
commit
9acb2964d7
@ -31,7 +31,6 @@ BuildPackages=
|
||||
gnu-efi-devel
|
||||
gnutls-devel
|
||||
gperf
|
||||
hostname
|
||||
iptables-devel
|
||||
kmod-devel
|
||||
libacl-devel
|
||||
|
@ -27,5 +27,5 @@ ExecStart=test %h = /root
|
||||
ExecStart=sh -c 'test %s = /bin/sh'
|
||||
ExecStart=sh -c 'test %m = $$(cat /etc/machine-id)'
|
||||
ExecStart=sh -c 'test %b = $$(cat /proc/sys/kernel/random/boot_id | sed -e 's/-//g')'
|
||||
ExecStart=sh -c 'test %H = $$(hostname)'
|
||||
ExecStart=sh -c 'test %H = $$(uname -n)'
|
||||
ExecStart=sh -c 'test %v = $$(uname -r)'
|
||||
|
@ -25,5 +25,5 @@ ExecStart=test %h = /root
|
||||
ExecStart=sh -c 'test %s = /bin/sh'
|
||||
ExecStart=sh -c 'test %m = $$(cat /etc/machine-id)'
|
||||
ExecStart=sh -c 'test %b = $$(cat /proc/sys/kernel/random/boot_id | sed -e 's/-//g')'
|
||||
ExecStart=sh -c 'test %H = $$(hostname)'
|
||||
ExecStart=sh -c 'test %H = $$(uname -n)'
|
||||
ExecStart=sh -c 'test %v = $$(uname -r)'
|
||||
|
Loading…
Reference in New Issue
Block a user