]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: avoid non-portable shell in test setup
authorEric Blake <eblake@redhat.com>
Fri, 29 Jul 2011 14:52:27 +0000 (08:52 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 29 Jul 2011 17:47:18 +0000 (11:47 -0600)
commit343ab98229a60126ec75087dd425207392b77754
tree301bb80a579e9444b12e2d0c192d19e33605f3a9
parentf2ac5807b9200a0aa0a739b5cea94b3288d71752
build: avoid non-portable shell in test setup

POSIX states that 'a=1; a=2 b=$a command' has unspecified results
for the value of $b visible within command.  In particular, on
BSD, this resulted in PATH not picking up the in-test ssh.

* tests/Makefile.am (lv_abs_top_builddir): New macro.
(path_add, TESTS_ENVIRONMENT): Use it to avoid referring to an
environment variable set previously within the same command line.
Reported by Matthias Bolte.
tests/Makefile.am