From: Bjoern Walk Date: Thu, 8 Feb 2018 12:38:25 +0000 (+0100) Subject: tests: run virshtest independent of current pwd X-Git-Tag: v4.1.0-rc1~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fc33b6f37af2310fd5bb1246e194eed96741df8;p=thirdparty%2Flibvirt.git tests: run virshtest independent of current pwd virshtest execves the virsh binary. Make sure that it finds the binary's location independent of the current working directory by specifying the absolute path as determined by the build environment. Reviewed-by: Marc Hartmayer Reviewed-by: Boris Fiuczynski Signed-off-by: Bjoern Walk --- diff --git a/tests/virshtest.c b/tests/virshtest.c index 67453bd952..94548a82d1 100644 --- a/tests/virshtest.c +++ b/tests/virshtest.c @@ -84,13 +84,13 @@ testCompareOutputLit(const char *expectData, return result; } -# define VIRSH_DEFAULT "../tools/virsh", \ +# define VIRSH_DEFAULT abs_topbuilddir "/tools/virsh", \ "--connect", \ "test:///default" static char *custom_uri; -# define VIRSH_CUSTOM "../tools/virsh", \ +# define VIRSH_CUSTOM abs_topbuilddir "/tools/virsh", \ "--connect", \ custom_uri