This is an automated email from the ASF dual-hosted git repository. peterlee pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
commit 75a16c23c73010988dc6dad08397ab4cc51e3533 Author: theobisproject <theobisproj...@gmail.com> AuthorDate: Sun Nov 22 13:58:56 2020 +0100 COMPRESS-559: Extract sparsefile-0.1 also on Linux --- .../org/apache/commons/compress/archivers/tar/SparseFilesTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 3b76696..fad2fc8 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 @@ -189,11 +189,9 @@ public class SparseFilesTest extends AbstractTestCase { IOUtils.toByteArray(sparseFileInputStream)); } - // TODO : it's wired that I can only get a 0 size sparsefile-0.1 on my Ubuntu 16.04 - // using "tar -xf pax_gnu_sparse.tar" paxGNUEntry = tin.getNextTarEntry(); assertTrue(tin.canReadEntryData(paxGNUEntry)); - try (InputStream sparseFileInputStream = extractTarAndGetInputStream(file, "sparsefile-0.0")) { + try (InputStream sparseFileInputStream = extractTarAndGetInputStream(file, "sparsefile-0.1")) { assertArrayEquals(IOUtils.toByteArray(tin), IOUtils.toByteArray(sparseFileInputStream)); }