Skip to content

Commit 6841ba6

Browse files
committed
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 <[email protected]>
2 parents 13b29ba + 9e90b53 commit 6841ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/test/com/cloud/storage/template/LocalTemplateDownloaderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class LocalTemplateDownloaderTest {
3131
@Test
3232
public void localTemplateDownloaderTest() {
3333
String url = "file://" + new File("pom.xml").getAbsolutePath();
34-
TemplateDownloader td = new LocalTemplateDownloader(null, url, "/tmp", TemplateDownloader.DEFAULT_MAX_TEMPLATE_SIZE_IN_BYTES, null);
34+
TemplateDownloader td = new LocalTemplateDownloader(null, url, System.getProperty("java.io.tmpdir"), TemplateDownloader.DEFAULT_MAX_TEMPLATE_SIZE_IN_BYTES, null);
3535
long bytes = td.download(true, null);
3636
if (!(bytes > 0)) {
3737
fail("Failed download");

0 commit comments

Comments
 (0)