Repository: cloudstack Updated Branches: refs/heads/master 13b29bac5 -> 6841ba61d
Use java.io.tmpdir instead of hardcoded /tmp Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/9e90b539 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/9e90b539 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/9e90b539 Branch: refs/heads/master Commit: 9e90b5393a82163b5baf9c87fa5e49ff00de808f Parents: 13b29ba Author: Wido den Hollander <[email protected]> Authored: Thu Sep 24 15:07:41 2015 +0200 Committer: Wido den Hollander <[email protected]> Committed: Thu Sep 24 15:07:41 2015 +0200 ---------------------------------------------------------------------- .../com/cloud/storage/template/LocalTemplateDownloaderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9e90b539/core/test/com/cloud/storage/template/LocalTemplateDownloaderTest.java ---------------------------------------------------------------------- diff --git a/core/test/com/cloud/storage/template/LocalTemplateDownloaderTest.java b/core/test/com/cloud/storage/template/LocalTemplateDownloaderTest.java index 74d1adc..b685e4c 100644 --- a/core/test/com/cloud/storage/template/LocalTemplateDownloaderTest.java +++ b/core/test/com/cloud/storage/template/LocalTemplateDownloaderTest.java @@ -31,7 +31,7 @@ public class LocalTemplateDownloaderTest { @Test public void localTemplateDownloaderTest() { String url = "file://" + new File("pom.xml").getAbsolutePath(); - TemplateDownloader td = new LocalTemplateDownloader(null, url, "/tmp", TemplateDownloader.DEFAULT_MAX_TEMPLATE_SIZE_IN_BYTES, null); + TemplateDownloader td = new LocalTemplateDownloader(null, url, System.getProperty("java.io.tmpdir"), TemplateDownloader.DEFAULT_MAX_TEMPLATE_SIZE_IN_BYTES, null); long bytes = td.download(true, null); if (!(bytes > 0)) { fail("Failed download");
