On Mon, 2020-05-04 at 13:44 +0200, Michal Privoznik wrote:
On 5/1/20 2:30 PM, Andrea Bolognani wrote:
> +char *
> +virGetUserRuntimeDirectory(void)
> +{
> + return g_build_filename(g_getenv("LIBVIRT_FAKE_ROOT_DIR"),
> + "user-runtime-directory", NULL);
> +}
While the qemuhotplugtest is (currently) the only one that actually uses
the runtimedir, this function is called basically from every qemu* test
because (almost?) every qemu* test calls virQEMUDriverConfigNew().
Therefore I think we need to fix qemuTestDriverInit() too so that after
it call ConfigNew() the path is replaced with some known value.
Good point! I'll look into making this more generic.
--
Andrea Bolognani / Red Hat / Virtualization