changeset 6858:37844623df8c stable

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 36d7bc8d2e8b
children e57c9da94b25
files tests/test-check-sdist.t
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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
@@ -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