From: Andrea Bolognani Date: Wed, 1 Mar 2023 10:11:23 +0000 (+0100) Subject: tests: Print fakerootdir when it's preserved X-Git-Tag: v9.2.0-rc1~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42950d6c4a61e53735d381cf6aeb2433ebeb6633;p=thirdparty%2Flibvirt.git tests: Print fakerootdir when it's preserved Setting the LIBVIRT_SKIP_CLEANUP environment variable results in the contents of fakerootdir being preserved for inspection. Be more helpful towards the developer and print out the path in this case. Signed-off-by: Andrea Bolognani Reviewed-by: Laine Stump --- diff --git a/tests/testutils.c b/tests/testutils.c index e717895fbf..e8cb8e6737 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -790,6 +790,8 @@ virTestFakeRootDirCleanup(char *fakerootdir) if (!g_getenv("LIBVIRT_SKIP_CLEANUP")) virFileDeleteTree(fakerootdir); + else + fprintf(stderr, "Test data ready for inspection: %s\n", fakerootdir); } int virTestMain(int argc,