HADOOP-16045. Don't run TestDU on Windows. Contributed by Lukas Majercak.

This commit is contained in:
Inigo Goiri 2019-01-11 18:07:19 -08:00
parent bf08f4abae
commit 35fa3bd685

View File

@ -17,10 +17,12 @@
*/ */
package org.apache.hadoop.fs; package org.apache.hadoop.fs;
import org.apache.hadoop.util.Shell;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import static org.junit.Assume.assumeFalse;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
@ -37,6 +39,7 @@ public class TestDU {
@Before @Before
public void setUp() { public void setUp() {
assumeFalse(Shell.WINDOWS);
FileUtil.fullyDelete(DU_DIR); FileUtil.fullyDelete(DU_DIR);
assertTrue(DU_DIR.mkdirs()); assertTrue(DU_DIR.mkdirs());
} }