Skip to content

Commit 9e90b53

Browse files
committed
Use java.io.tmpdir instead of hardcoded /tmp
1 parent 13b29ba commit 9e90b53

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)