diff tests/test-check-sdist.t @ 6891:2cb062b8050c stable

tests: don't put file lists inside dist/ directory Makes it easier to use `twine check dist/*` or anything that expects dist/ to only contain dist files.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 09 Sep 2024 18:46:03 +0400
parents b3261527f770
children 090834ff8209
line wrap: on
line diff
--- a/tests/test-check-sdist.t	Sat Sep 28 16:09:03 2024 +0400
+++ b/tests/test-check-sdist.t	Mon Sep 09 18:46:03 2024 +0400
@@ -34,32 +34,32 @@
   $ find hg?evolve-*.tar.gz -size +800000c
   hg?evolve-*.tar.gz (glob)
 
-  $ 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
-  ??? other-files (glob)
-  $ wc -l test-files
-  ??? test-files (glob)
-  $ grep -F debian 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
+  ??? ../other-files (glob)
+  $ wc -l ../test-files
+  ??? ../test-files (glob)
+  $ grep -F debian ../files
   tests/test-check-debian.t
-  $ grep -F __init__.py files
+  $ grep -F __init__.py ../files
   hgext3rd/__init__.py
   hgext3rd/evolve/__init__.py
   hgext3rd/evolve/thirdparty/__init__.py
   hgext3rd/topic/__init__.py
-  $ grep -F common.sh files
+  $ grep -F common.sh ../files
   docs/tutorial/testlib/common.sh
   tests/testlib/common.sh
-  $ grep -F README files
+  $ grep -F README ../files
   README.rst
   docs/README
   docs/tutorial/README.rst
   hgext3rd/topic/README
 
-  $ grep -E '(gitlab|contrib|hack|format-source)' files
+  $ grep -E '(gitlab|contrib|hack|format-source)' ../files
   [1]
-  $ grep -F legacy.py files
+  $ grep -F legacy.py ../files
   [1]
-  $ grep -F netlify files
+  $ grep -F netlify ../files
   [1]