Commit 1b3275ba authored by Andrea Bolognani's avatar Andrea Bolognani

tests: Use AM_TESTS_ENVIRONMENT

According to the documentation[1], TESTS_ENVIRONMENT is
reserved for the user, which means we shouldn't be using it.

AM_TESTS_ENVIRONMENT needs to be terminated with a
semicolon, which in turn requires exporting the variables
instead of merely declaring them, so do both of those
things; since we're rewriting the whole hunk anyway, we
also take the opportunity use proper quoting.

[1] https://www.gnu.org/software/automake/manual/html_node/Scripts_002dbased-Testsuites.htmlSigned-off-by: 's avatarAndrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina's avatarPavel Hrdina <phrdina@redhat.com>
parent b3ef5afe
......@@ -37,6 +37,6 @@ EXTRA_DIST = \
TESTS = $(test_programs)
TESTS_ENVIRONMENT = \
abs_top_builddir=$(abs_top_builddir) \
VIRT_DBUS_INTERFACES_DIR=$(abs_top_srcdir)/data
AM_TESTS_ENVIRONMENT = \
export abs_top_builddir="$(abs_top_builddir)"; \
export VIRT_DBUS_INTERFACES_DIR="$(abs_top_srcdir)/data";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment