HADOOP-16045. Don't run TestDU on Windows. Contributed by Lukas Majercak.
authorInigo Goiri <inigoiri@apache.org>
Sat, 12 Jan 2019 02:07:19 +0000 (18:07 -0800)
committerInigo Goiri <inigoiri@apache.org>
Sat, 12 Jan 2019 02:07:19 +0000 (18:07 -0800)
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestDU.java

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