Mercurial > evolve
diff tests/test-check-sdist.t @ 6871:f1eefaa0ad28
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).
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 06 Oct 2024 19:44:22 +0400 |
parents | 120f0ad4646c |
children | 1ce9c2252965 |
line wrap: on
line diff
--- 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