pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject svn commit: r1223052 - in /pig/trunk/test/org/apache/pig/test: TestBatchAliases.java TestDataBagAccess.java
Date Sun, 25 Dec 2011 08:01:37 GMT
Author: daijy
Date: Sun Dec 25 08:01:37 2011
New Revision: 1223052

URL: http://svn.apache.org/viewvc?rev=1223052&view=rev
Log:
Another fix for unit test failure

Modified:
    pig/trunk/test/org/apache/pig/test/TestBatchAliases.java
    pig/trunk/test/org/apache/pig/test/TestDataBagAccess.java

Modified: pig/trunk/test/org/apache/pig/test/TestBatchAliases.java
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/test/TestBatchAliases.java?rev=1223052&r1=1223051&r2=1223052&view=diff
==============================================================================
--- pig/trunk/test/org/apache/pig/test/TestBatchAliases.java (original)
+++ pig/trunk/test/org/apache/pig/test/TestBatchAliases.java Sun Dec 25 08:01:37 2011
@@ -28,6 +28,7 @@ import org.apache.pig.ExecType;
 import org.apache.pig.PigServer;
 import org.apache.pig.backend.executionengine.ExecJob;
 import org.apache.pig.impl.io.FileLocalizer;
+import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -44,6 +45,12 @@ public class TestBatchAliases extends Te
         myPig = new PigServer(ExecType.LOCAL, new Properties());
         deleteOutputFiles();
     }
+    
+    @Override
+    @After
+    public void tearDown() throws Exception {
+        deleteOutputFiles();
+    }
 
     @Test
     public void testBatchAliases() throws IOException {

Modified: pig/trunk/test/org/apache/pig/test/TestDataBagAccess.java
URL: http://svn.apache.org/viewvc/pig/trunk/test/org/apache/pig/test/TestDataBagAccess.java?rev=1223052&r1=1223051&r2=1223052&view=diff
==============================================================================
--- pig/trunk/test/org/apache/pig/test/TestDataBagAccess.java (original)
+++ pig/trunk/test/org/apache/pig/test/TestDataBagAccess.java Sun Dec 25 08:01:37 2011
@@ -200,7 +200,7 @@ public class TestDataBagAccess extends T
         pigServer.registerQuery("b = group a by s;");
         Class[] loadStoreClasses = new Class[] { BinStorage.class, PigStorage.class };
         for (int i = 0; i < loadStoreClasses.length; i++) {
-            String output = "/pig/out/TestDataBagAccess-testBagStoreLoad-" +
+            String output = "TestDataBagAccess-testBagStoreLoad-" +
                              loadStoreClasses[i].getName() + ".txt";
             pigServer.deleteFile(output);
             pigServer.store("b", output, loadStoreClasses[i].getName());



Mime
View raw message