From 99702fe443383707b9d9c1b84570baf3bebf9253 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 8 Mar 2012 19:27:37 +0000 Subject: extra-tests: Export LIBVIRT_DEFAULT_URI to pick-guests.pl. This fixes commit 2912e4e1173226f461517a0008664e01b5d3066d. --- tests/extra/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/extra/Makefile.am b/tests/extra/Makefile.am index dfdffd18..b807048b 100644 --- a/tests/extra/Makefile.am +++ b/tests/extra/Makefile.am @@ -64,8 +64,13 @@ export LIBVIRT_DEFAULT_URI = \ qemu+unix:///system?socket=/var/run/libvirt/libvirt-sock-ro # Choose guests at random on each run. +# +# 'export LIBVIRT_DEFAULT_URI' above doesn't appear to have an effect +# for $(shell ...) commands, so we have to redefine LIBVIRT_DEFAULT_URI here. random_guests := \ - $(shell $(abs_top_builddir)/run $(srcdir)/pick-guests.pl 5) + $(shell \ + LIBVIRT_DEFAULT_URI='qemu+unix:///system?socket=/var/run/libvirt/libvirt-sock-ro' \ + $(abs_top_builddir)/run $(srcdir)/pick-guests.pl 5) extra-tests: \ test-guests \ -- cgit