# HG changeset patch # User Anton Shestakov # Date 1725891576 -14400 # Node ID 37844623df8c86fc0262be0ab9319c076446b225 # Parent 36d7bc8d2e8be00f562f3e41ed514ece4d42c5d2 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 36d7bc8d2e8b -r 37844623df8c 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 @@ -29,10 +29,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 $ egrep '^tests/test-.*\.(t|py)$' files > test-files $ egrep -v '^tests/test-.*\.(t|py)$' files > other-files $ wc -l other-files