changeset 6214:f196f76d8683

ci: move update-hg-repo.sh to testlib/ Moving the file from contrib/, which is skipped when building a tarball, means we have one more file "appear" in test-check-sdist.t.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 03 Dec 2021 09:37:51 +0300
parents ed68f64f5d0f
children fc3ad54219d7
files .gitlab-ci.yml contrib/update-hg-repo.sh tests/test-check-sdist.t tests/testlib/update-hg-repo.sh
diffstat 3 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -98,7 +98,7 @@
     before_script:
         - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.t > C:/Temp/check-tests.txt'
     script:
-        - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && contrib/update-hg-repo.sh C:/Temp/hg'
+        - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && tests/testlib/update-hg-repo.sh C:/Temp/hg'
         - >
           C:/MinGW/msys/1.0/bin/sh.exe --login -c '
           cd "$OLDPWD" &&
--- a/tests/test-check-sdist.t
+++ b/tests/test-check-sdist.t
@@ -35,7 +35,7 @@
 
   $ tar -tzf hg-evolve-*.tar.gz | sed 's|^hg-evolve-[^/]*/||' | sort > files
   $ wc -l files
-  353 files
+  354 files
   $ fgrep debian files
   tests/test-check-debian.t
   $ fgrep __init__.py files
rename from contrib/update-hg-repo.sh
rename to tests/testlib/update-hg-repo.sh
--- a/contrib/update-hg-repo.sh
+++ b/tests/testlib/update-hg-repo.sh
@@ -1,4 +1,7 @@
 #!/bin/sh
+# Clone or update core Mercurial repo at the provided path. Useful for CI
+# runners that don't have a shared repo setup, e.g. the shell runner that is
+# currently used for Windows CI.
 
 if hg root -R "$1"; then
     hg pull -R "$1"