mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
remote: use absolute path to check for daemons
virFileFindResource needs to be given the absolute build path otherwise its results will vary according to the CWD, leading to spurious failures in dev testing. Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
37258ac235
commit
2db507ece5
@ -2001,7 +2001,9 @@ remoteDispatchProbeURI(bool readonly,
|
||||
|
||||
daemonname = g_strdup_printf("virt%sd", drivers[i]);
|
||||
|
||||
if (!(daemonpath = virFileFindResource(daemonname, "src", SBINDIR)))
|
||||
if (!(daemonpath = virFileFindResource(daemonname,
|
||||
abs_top_builddir "/src",
|
||||
SBINDIR)))
|
||||
return -1;
|
||||
|
||||
if (!virFileExists(daemonpath)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user