From: Michael Meffie Date: Fri, 10 Jan 2020 14:06:38 +0000 (-0500) Subject: tests: do not resolve addresses in vos/vl test X-Git-Tag: openafs-devel-1_9_0~161 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=dcf44ab5fc5c1f5e2e759ea4b6156f7e1faa4b7a tests: do not resolve addresses in vos/vl test The vos-t test adds a set of 10.* test addresses to a test vlserver and runs vos to read them back. When the test is run in an environment where hosts have been assigned in the 10.* internal network, vos will resolve the addresses to hostnames and the test fails. Pass the -noresolve option to vos for this test when checking for the expected list of addresses. Example test output before this commit: ./vos-t ... # seen: 10.0.0.0 10.0.0.1 myhost.example.com 10.0.0.3 ... not ok 5 - vos output matches Change-Id: Ief43fe180a0dfff211f28d5f47be6224270907a3 Reviewed-on: https://gerrit.openafs.org/14020 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- diff --git a/tests/volser/vos-t.c b/tests/volser/vos-t.c index 1cc7958..ddad658 100644 --- a/tests/volser/vos-t.c +++ b/tests/volser/vos-t.c @@ -78,7 +78,7 @@ TestListAddrs(struct ubik_client *client, char *dirname) exit(1); } execl(binPath, "vos", - "listaddrs", "-config", dirname, "-noauth", NULL); + "listaddrs", "-config", dirname, "-noauth", "-noresolve", NULL); exit(1); } close(outpipe[1]);