From: Andrea Bolognani Date: Tue, 12 Mar 2019 15:31:20 +0000 (+0100) Subject: tests: Don't redefine variables for TESTS_ENVIRONMENT X-Git-Tag: v5.2.0-rc1~194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=349d49637cf472a25e9f9fbced1f82e52726467e;p=thirdparty%2Flibvirt.git tests: Don't redefine variables for TESTS_ENVIRONMENT We already have code that defines all abs_* variables at the top of tests/Makefile.am, so there is no point in redefining them a second time (using a slightly different shell incantation to boot). Signed-off-by: Andrea Bolognani Reviewed-by: Martin Kletzander --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 42ec64755d..858ed047e8 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -469,20 +469,12 @@ endif ! WITH_TESTS TESTS = $(test_programs) \ $(test_scripts) -# NB, automake < 1.10 does not provide the real -# abs_top_{src/build}dir or builddir variables, so don't rely -# on them here. Fake them with 'pwd' -# Also, BSD sh doesn't like 'a=b b=$$a', so we can't use an -# intermediate shell variable, but must do all the expansion in make - -lv_abs_top_builddir=$(shell cd '$(top_builddir)' && pwd) - VIR_TEST_EXPENSIVE ?= $(VIR_TEST_EXPENSIVE_DEFAULT) TESTS_ENVIRONMENT = \ - abs_top_builddir=$(lv_abs_top_builddir) \ - abs_top_srcdir=`cd '$(top_srcdir)'; pwd` \ - abs_builddir=$(abs_builddir) \ - abs_srcdir=$(abs_srcdir) \ + abs_top_builddir="$(abs_top_builddir)" \ + abs_top_srcdir="$(abs_top_srcdir)" \ + abs_builddir="$(abs_builddir)" \ + abs_srcdir="$(abs_srcdir)" \ SHELL="$(SHELL)" \ LIBVIRT_AUTOSTART=0 \ LC_ALL=C \