This is an automated email from the ASF dual-hosted git repository.

bodewig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git


The following commit(s) were added to refs/heads/master by this push:
     new 8220269  try to debug test failure in Jenkins
8220269 is described below

commit 822026997f2bff5f4bcbc8ec1a875512f8cc6f4f
Author: Stefan Bodewig <[email protected]>
AuthorDate: Sat Jan 25 12:15:57 2020 +0100

    try to debug test failure in Jenkins
---
 .../org/apache/commons/compress/archivers/tar/SparseFilesTest.java   | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/src/test/java/org/apache/commons/compress/archivers/tar/SparseFilesTest.java 
b/src/test/java/org/apache/commons/compress/archivers/tar/SparseFilesTest.java
index 24218c2..43bdee7 100644
--- 
a/src/test/java/org/apache/commons/compress/archivers/tar/SparseFilesTest.java
+++ 
b/src/test/java/org/apache/commons/compress/archivers/tar/SparseFilesTest.java
@@ -126,6 +126,7 @@ public class SparseFilesTest extends AbstractTestCase {
             return;
         }
 
+        try {
         final File file = getFile("oldgnu_sparse.tar");
         try (InputStream sparseFileInputStream = 
extractTarAndGetInputStream(file, "sparsefile");
              TarArchiveInputStream tin = new TarArchiveInputStream(new 
FileInputStream(file))) {
@@ -133,6 +134,10 @@ public class SparseFilesTest extends AbstractTestCase {
             assertArrayEquals(IOUtils.toByteArray(tin),
                 IOUtils.toByteArray(sparseFileInputStream));
         }
+        } catch (RuntimeException | IOException ex) {
+            ex.printStackTrace();
+            throw ex;
+        }
     }
 
     @Test

Reply via email to