# HG changeset patch # User Anton Shestakov # Date 1728229462 -14400 # Node ID f1eefaa0ad28b22bccc84d51a908c35f37845e0e # Parent 120f0ad4646cf5b67b249a4b1da7a5cbecbf3775 tests: strip trailing slash and skip the first line in test-check-sdist.t To be able to easily compare the output of `tar -t` with other commands (such as `find`) we want to strip the trailing slash from directories and also exclude the first line in the output (which is now empty after previous sed manipulations). diff -r 120f0ad4646c -r f1eefaa0ad28 tests/test-check-sdist.t --- a/tests/test-check-sdist.t Wed Oct 16 18:24:09 2024 +0400 +++ b/tests/test-check-sdist.t Sun Oct 06 19:44:22 2024 +0400 @@ -34,7 +34,7 @@ $ find hg?evolve-*.tar.gz -size +800000c hg?evolve-*.tar.gz (glob) - $ tar -tzf hg?evolve-*.tar.gz | sed 's|^hg.evolve-[^/]*/||' | sort > ../files + $ tar -tzf hg?evolve-*.tar.gz | sed 's|^hg.evolve-[^/]*/||;s|/$||;/^$/d' | sort > ../files $ grep -E '^tests/test-.*\.(t|py)$' ../files > ../test-files $ grep -E -v '^tests/test-.*\.(t|py)$' ../files > ../other-files $ wc -l ../other-files