From 100cec69fbbb911762a3424a37c8a53b299136ea Mon Sep 17 00:00:00 2001 From: Jason Edgecombe Date: Sat, 22 Sep 2012 21:07:51 -0400 Subject: [PATCH] TESTS: Skip the volser tests if current hostname maps to the loopback network Change-Id: I35d16ba418d0ecd67ffbd54d564a515bf551fe8d Reviewed-on: http://gerrit.openafs.org/8146 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- tests/volser/Makefile.in | 5 +++-- tests/volser/vos-t.c | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/volser/Makefile.in b/tests/volser/Makefile.in index e542e9c2b..6ba9d46d6 100644 --- a/tests/volser/Makefile.in +++ b/tests/volser/Makefile.in @@ -14,9 +14,10 @@ MODULE_LIBS = ../tap/libtap.a \ $(abs_top_builddir)/src/vlserver/liboafs_vldb.la \ $(XLIBS) -vos-t: vos-t.o ../common/config.o ../common/servers.o ../common/ubik.o +vos-t: vos-t.o ../common/config.o ../common/servers.o ../common/ubik.o \ + ../common/network.o $(LT_LDRULE_static) vos-t.o ../common/config.o ../common/servers.o \ - ../common/ubik.o $(MODULE_LIBS) + ../common/ubik.o ../common/network.o $(MODULE_LIBS) clean: $(LT_CLEAN) diff --git a/tests/volser/vos-t.c b/tests/volser/vos-t.c index dc8f64e14..daecfbfa9 100644 --- a/tests/volser/vos-t.c +++ b/tests/volser/vos-t.c @@ -96,6 +96,9 @@ main(int argc, char **argv) plan(6); + /* Skip all tests if the current hostname is on the loopback network */ + afstest_SkipTestsIfLoopbackNetIsDefault(); + code = rx_Init(0); dirname = afstest_BuildTestConfig(); -- 2.39.5