capitests: Set path in TESTS_ENVIRONMENT instead of in tests.c
[libguestfs.git] / capitests / Makefile.am
index 023efe4..65a7240 100644 (file)
@@ -38,6 +38,7 @@ TESTS_ENVIRONMENT = \
        SKIP_TEST_COMMAND=$(shell ldd test-command | grep -sq 'not a dynamic executable' || echo 1) \
        SKIP_TEST_COMMAND_LINES=$(shell ldd test-command | grep -sq 'not a dynamic executable' || echo 1) \
        SKIP_TEST_CHECKSUM_8=$(shell if test `find ../initramfs -name squashfs.ko | wc -l` -eq 0; then echo 1; fi) \
+       LIBGUESTFS_PATH=$(top_builddir)/appliance \
        $(VG)
 
 # Run the tests under valgrind.