After split from OVS, make check-valgrind and check-lcov are not
working any more, because the $ovs_srcdir are missing for these tests.
Instead of add ovs_srcdir=$(ovs_srcdir) for each target, this patch
export ovs_srcdir once for all.

Signed-off-by: Han Zhou <hz...@ovn.org>
---
 tests/automake.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/automake.mk b/tests/automake.mk
index 013e592..47e6a5d 100644
--- a/tests/automake.mk
+++ b/tests/automake.mk
@@ -54,8 +54,10 @@ DISTCLEANFILES += tests/atconfig tests/atlocal
 
 AUTOTEST_PATH = 
$(ovs_builddir)/utilities:$(ovs_builddir)/vswitchd:$(ovs_builddir)/ovsdb:$(ovs_builddir)/vtep:tests:$(PTHREAD_WIN32_DIR_DLL):$(SSL_DIR):controller-vtep:northd:utilities:controller
 
+export ovs_srcdir
+
 check-local:
-       set $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH) 
ovs_srcdir=$(ovs_srcdir); \
+       set $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=$(AUTOTEST_PATH); \
        "$$@" $(TESTSUITEFLAGS) || (test X'$(RECHECK)' = Xyes && "$$@" 
--recheck)
 
 # Python Coverage support.
-- 
2.1.0

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to