summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-05-31 16:31:16 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-05-31 16:54:35 +0200
commitad7b700d6a2bdccadd5a06c97c1eede75a7e5d78 (patch)
treeecce2482007f229f7b33b61ba3ec817d3d6e7e49
parentcc472f52fb37cd653857e10dd24ecca5d68eb959 (diff)
downloadNetworkManager-ad7b700d6a2bdccadd5a06c97c1eede75a7e5d78.tar.gz
test: don't assert on the tun link being up to date prior to upping it
Fixes the test run with: NMTST_SEED_RAND=502735495 src/platform/tests/test-link-linux \ -p /link/software/detect/tun/external
-rw-r--r--src/platform/tests/test-link.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/platform/tests/test-link.c b/src/platform/tests/test-link.c
index 3f2875848a..cd5880e347 100644
--- a/src/platform/tests/test-link.c
+++ b/src/platform/tests/test-link.c
@@ -1070,6 +1070,14 @@ test_software_detect (gconstpointer user_data)
if (lnk)
g_assert (memcmp (plnk, &lnk_tun2, sizeof (NMPlatformLnkTun)) == 0);
+ if (i_step == 0) {
+ /* Before we upped the device for the first time the kernel didn't notify
+ * us of the owner set after the link creation:
+ * https://bugzilla.redhat.com/show_bug.cgi?id=1566062
+ */
+ break;
+ }
+
g_assert (nm_platform_lnk_tun_cmp (plnk, &lnk_tun) == 0);
break;
}