summaryrefslogtreecommitdiff
path: root/clients/tests/test-client.check-on-disk/test_004-055.expected
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-06-08 08:21:07 +0200
committerThomas Haller <thaller@redhat.com>2018-06-15 11:48:16 +0200
commitdba41ee1e1ead5db28f207c85eb5f6635de074ca (patch)
tree507514ba75a50e4289125640abaa5dc20c0758c2 /clients/tests/test-client.check-on-disk/test_004-055.expected
parentb29bf1b0791d5ef5cc111d629fe7a01e5f13fec3 (diff)
downloadNetworkManager-dba41ee1e1ead5db28f207c85eb5f6635de074ca.tar.gz
cli: return NULL strv array from _ip_config_get_routes() if there are no routes
The property getter for certain properties tries to return a strv array. In this case, the result should be identical, whether an empty strv array or NULL is returned. Let _ip_config_get_routes() return %NULL if there are no routes. This should have no practical difference, but it actually exposes a bug in "cli/common/utils.c", which was previously hidden by not commonly returning %NULL. This bug will be fixed in the next commit.
Diffstat (limited to 'clients/tests/test-client.check-on-disk/test_004-055.expected')
-rw-r--r--clients/tests/test-client.check-on-disk/test_004-055.expected3
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/tests/test-client.check-on-disk/test_004-055.expected b/clients/tests/test-client.check-on-disk/test_004-055.expected
index 52ff6ac789..493f0ae2b4 100644
--- a/clients/tests/test-client.check-on-disk/test_004-055.expected
+++ b/clients/tests/test-client.check-on-disk/test_004-055.expected
@@ -2,7 +2,7 @@ location: clients/tests/test-client.py:1001:test_004()/55
cmd: $NMCLI -f ALL device show wlan0
lang: C
returncode: 0
-stdout: 4600 bytes
+stdout: 4643 bytes
>>>
GENERAL.DEVICE: wlan0
GENERAL.TYPE: wifi
@@ -68,6 +68,7 @@ AP[3].SECURITY: WPA1 WPA2
IP4.ADDRESS[1]: 192.168.228.18/32
IP4.ADDRESS[2]: 192.168.209.179/25
IP4.GATEWAY: 192.168.41.120
+IP4.ROUTE: --
IP4.DOMAIN[1]: sear4.foo2.bar
IP4.DOMAIN[2]: sear4.fo.x.y
IP4.DOMAIN[3]: sear4.foo1.bar