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:
Thomas Haller 2015-11-18 14:00:31 +01:00
parent 37824def11
commit 16afb3a31a

View file

@ -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));