try to debug test failure in Jenkins
@@ -126,6 +126,7 @@ public void testExtractOldGNU() throws IOException, InterruptedException {
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 void testExtractOldGNU() throws IOException, InterruptedException {
assertArrayEquals(IOUtils.toByteArray(tin),
IOUtils.toByteArray(sparseFileInputStream));
}
+ } catch (RuntimeException | IOException ex) {
+ ex.printStackTrace();
+ throw ex;
+ }
}
@Test
