diff tests/test-check-sdist.t @ 6843:c34f6f00a427

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.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 09 Sep 2024 18:19:36 +0400
parents ee200d1337a7
children ab7bbcd052ad
line wrap: on
line diff
--- 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