mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
conf: make virstoragetest debug easier
I'm tired of alternating between test failures due to bugs in my refactoring work, vs. test failures due to leftovers in the file system from the previous test. This patch has no impact when the testsuite is successful, but doeesn't hurt either. * tests/virstoragetest.c (testPrepImages): Clean up from prior failed test. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
7eca4a5b32
commit
aa506b462c
@ -102,6 +102,9 @@ testPrepImages(void)
|
||||
if (!qemuimg)
|
||||
goto skip;
|
||||
|
||||
/* Clean up from any earlier failed tests */
|
||||
virFileDeleteTree(datadir);
|
||||
|
||||
/* See if qemu-img supports '-o compat=xxx'. If so, we force the
|
||||
* use of both v2 and v3 files; if not, it is v2 only but the test
|
||||
* still works. */
|
||||
|
Loading…
Reference in New Issue
Block a user