You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by wi...@apache.org on 2015/09/25 10:13:06 UTC

[1/2] git commit: updated refs/heads/master to 6841ba6

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 <wi...@widodh.nl>
Authored: Thu Sep 24 15:07:41 2015 +0200
Committer: Wido den Hollander <wi...@widodh.nl>
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");


[2/2] git commit: updated refs/heads/master to 6841ba6

Posted by wi...@apache.org.
Merge pull request #884 from wido/test-tmp-dir

Use java.io.tmpdir instead of hardcoded /tmpSmall fix to have the tests also work on other platforms

* pr/884:
  Use java.io.tmpdir instead of hardcoded /tmp

Signed-off-by: Wido den Hollander <wi...@widodh.nl>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6841ba61
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6841ba61
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6841ba61

Branch: refs/heads/master
Commit: 6841ba61da5e407f7a16c4a575d1a4e8c8345970
Parents: 13b29ba 9e90b53
Author: Wido den Hollander <wi...@widodh.nl>
Authored: Fri Sep 25 10:13:03 2015 +0200
Committer: Wido den Hollander <wi...@widodh.nl>
Committed: Fri Sep 25 10:13:03 2015 +0200

----------------------------------------------------------------------
 .../com/cloud/storage/template/LocalTemplateDownloaderTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------