pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pradeep...@apache.org
Subject svn commit: r896947 - /hadoop/pig/branches/load-store-redesign/test/org/apache/pig/test/TestFinish.java
Date Thu, 07 Jan 2010 18:07:27 GMT
Author: pradeepkth
Date: Thu Jan  7 18:07:26 2010
New Revision: 896947

URL: http://svn.apache.org/viewvc?rev=896947&view=rev
Log:
minor fix to cleanup test output file at end of test TestFinish.

Modified:
    hadoop/pig/branches/load-store-redesign/test/org/apache/pig/test/TestFinish.java

Modified: hadoop/pig/branches/load-store-redesign/test/org/apache/pig/test/TestFinish.java
URL: http://svn.apache.org/viewvc/hadoop/pig/branches/load-store-redesign/test/org/apache/pig/test/TestFinish.java?rev=896947&r1=896946&r2=896947&view=diff
==============================================================================
--- hadoop/pig/branches/load-store-redesign/test/org/apache/pig/test/TestFinish.java (original)
+++ hadoop/pig/branches/load-store-redesign/test/org/apache/pig/test/TestFinish.java Thu Jan
 7 18:07:26 2010
@@ -121,7 +121,9 @@
             Util.deleteFile(cluster, inputFileName);
             Util.deleteFile(cluster, expectedFileName);
         } else if (execType == ExecType.LOCAL) {
-            assertTrue(new File(expectedFileName).exists());
+            File f = new File(expectedFileName);
+            assertTrue(f.exists());
+            f.delete();
         } else {
             throw new IllegalArgumentException("invalid excetype " + execType.
                     toString());



Mime
View raw message