# HG changeset patch # User Anton Shestakov # Date 1725891576 -14400 # Node ID c34f6f00a427856094687b0018ce165118080b45 # Parent ee200d1337a7aacd15d9701f00e4a79380488835 tests: accommodate both "hg-evolve" and "hg_evolve" in tarballs Looks like current distutils (or maybe setuptools, I'm not an expert) that are available in Debian Testing create tarballs that have an underscore instead of a hyphen in the name. The paths inside the tarball are also different, so we need to change the sed instruction too. diff -r ee200d1337a7 -r c34f6f00a427 tests/test-check-sdist.t --- a/tests/test-check-sdist.t Mon Sep 09 17:55:17 2024 +0400 +++ b/tests/test-check-sdist.t Mon Sep 09 18:19:36 2024 +0400 @@ -28,10 +28,10 @@ no previously-included directories found matching '.gitlab' $ cd "$TESTTMP"/dist - $ find hg-evolve-*.tar.gz -size +800000c - hg-evolve-*.tar.gz (glob) + $ 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-[^/]*/||' | 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