# HG changeset patch # User Arseniy Alekseyev # Date 2022-09-19 21:34:42 # Node ID 58e38c1a2370aad7f5785e86b6930e6747e52ff3 # Parent f64261762f3d681a13c6548d2ba6c203ebb8e9cd tests: fix tar invocation, to address issue 6740 diff --git a/tests/test-issue6528.t b/tests/test-issue6528.t --- a/tests/test-issue6528.t +++ b/tests/test-issue6528.t @@ -177,7 +177,7 @@ It's a tarball because unbundle might ma $ cd .. $ mkdir repo-to-fix $ cd repo-to-fix - $ tar -x < $TESTDIR/bundles/issue6528.tar + $ tar -xf - < "$TESTDIR"/bundles/issue6528.tar Check that the issue is present (It is currently not present with rhg but will be when optimizations are added @@ -278,7 +278,7 @@ Try the using the report options $ cd .. $ mkdir repo-to-fix-report $ cd repo-to-fix - $ tar -x < "$TESTDIR"/bundles/issue6528.tar + $ tar -xf - < "$TESTDIR"/bundles/issue6528.tar $ hg debug-repair-issue6528 --to-report $TESTTMP/report.txt found affected revision 1 for filelog 'data/D.txt.i' @@ -365,7 +365,7 @@ Try it with a non-inline revlog $ mkdir repo-to-fix-not-inline $ cd repo-to-fix-not-inline - $ tar -x < "$TESTDIR"/bundles/issue6528.tar + $ tar -xf - < "$TESTDIR"/bundles/issue6528.tar $ echo b >> b.txt $ hg commit -qm "inline -> separate" $ find .hg -name *b.txt.d diff --git a/tests/test-revlog.t b/tests/test-revlog.t --- a/tests/test-revlog.t +++ b/tests/test-revlog.t @@ -73,7 +73,7 @@ This is what we did to produce the repo - hg commit -Am_ - remove some cache files - $ tar -x < "$TESTDIR"/bundles/test-revlog-diff-relative-to-nullrev.tar + $ tar -xf - < "$TESTDIR"/bundles/test-revlog-diff-relative-to-nullrev.tar $ cd nullrev-diff $ hg debugdeltachain a rev p1 p2 chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks