mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 02:57:58 +02:00
platform/tests: fix fake-platform test running in debug-mode
In debug-mode, test_ip4_address_peer_zero() used to print the result of `ip address show`. That fails for fake-platform because the device does not exists. Just don't do that.
This commit is contained in:
parent
37824def11
commit
16afb3a31a
1 changed files with 1 additions and 1 deletions
|
|
@ -311,7 +311,7 @@ test_ip4_address_peer_zero (void)
|
|||
g_array_unref (addrs);
|
||||
}
|
||||
|
||||
if (nmtst_is_debug ())
|
||||
if (nmtst_is_debug () && nmtstp_is_root_test ())
|
||||
nmtstp_run_command_check ("ip address show dev %s", DEVICE_NAME);
|
||||
|
||||
nmtst_rand_perm (NULL, r_peers, peers, sizeof (peers[0]), G_N_ELEMENTS (peers));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue