mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 05:17:54 +03:00
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 <mhartmay@linux.vnet.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com> Signed-off-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
This commit is contained in:
parent
e6f36ae435
commit
6fc33b6f37
@ -84,13 +84,13 @@ testCompareOutputLit(const char *expectData,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
# define VIRSH_DEFAULT "../tools/virsh", \
|
# define VIRSH_DEFAULT abs_topbuilddir "/tools/virsh", \
|
||||||
"--connect", \
|
"--connect", \
|
||||||
"test:///default"
|
"test:///default"
|
||||||
|
|
||||||
static char *custom_uri;
|
static char *custom_uri;
|
||||||
|
|
||||||
# define VIRSH_CUSTOM "../tools/virsh", \
|
# define VIRSH_CUSTOM abs_topbuilddir "/tools/virsh", \
|
||||||
"--connect", \
|
"--connect", \
|
||||||
custom_uri
|
custom_uri
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user