mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
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 <abologna@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
c0a4a98eab
commit
349d49637c
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user