Updated Branches: refs/heads/qemu-img 60206ad66 -> a0b087835
Remove created QCOW2 files during the tests Have tests clean up their mess Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/a0b08783 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/a0b08783 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/a0b08783 Branch: refs/heads/qemu-img Commit: a0b0878352d266af52f0f9d9105c3e491b09ec0f Parents: 60206ad Author: Wido den Hollander <[email protected]> Authored: Mon Feb 18 14:41:31 2013 +0100 Committer: Wido den Hollander <[email protected]> Committed: Mon Feb 18 14:41:31 2013 +0100 ---------------------------------------------------------------------- .../apache/cloudstack/utils/qemu/QemuImgTest.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/a0b08783/utils/test/org/apache/cloudstack/utils/qemu/QemuImgTest.java ---------------------------------------------------------------------- diff --git a/utils/test/org/apache/cloudstack/utils/qemu/QemuImgTest.java b/utils/test/org/apache/cloudstack/utils/qemu/QemuImgTest.java index 2e78012..17687eb 100644 --- a/utils/test/org/apache/cloudstack/utils/qemu/QemuImgTest.java +++ b/utils/test/org/apache/cloudstack/utils/qemu/QemuImgTest.java @@ -25,6 +25,7 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.HashMap; +import java.io.File; public class QemuImgTest { @Test @@ -49,6 +50,9 @@ public class QemuImgTest { String infoPath = info.get(new String("image")); assertEquals(filename, infoPath); + File f = new File(filename); + f.delete(); + } @Test @@ -67,5 +71,12 @@ public class QemuImgTest { if (info == null) { fail("We didn't get any information back from qemu-img"); } + + File sf = new File(srcFileName); + sf.delete(); + + File df = new File(destFileName); + df.delete(); + } } \ No newline at end of file
