1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

test-network: silence check for alternative names

This commit is contained in:
Yu Watanabe 2022-01-15 09:30:21 +09:00
parent df25b9e48c
commit 0eed039c92

View File

@ -176,7 +176,7 @@ def expectedFailureIfAlternativeNameIsNotAvailable():
call('ip link add dummy98 type dummy', stderr=subprocess.DEVNULL)
rc = call('ip link prop add dev dummy98 altname hogehogehogehogehoge', stderr=subprocess.DEVNULL)
if rc == 0:
rc = call('ip link show dev hogehogehogehogehoge', stderr=subprocess.DEVNULL)
rc = call('ip link show dev hogehogehogehogehoge', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
if rc == 0:
supported = True