]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: silence check for alternative names
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 15 Jan 2022 00:30:21 +0000 (09:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 Jan 2022 06:00:53 +0000 (15:00 +0900)
test/test-network/systemd-networkd-tests.py

index 2207f36245a2e962246789a6654cf9fa28e8950e..101a896459af7753e5036319cea586b419813adf 100755 (executable)
@@ -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