Patchwork D8677: heptapod: use basename of tests in skiplist in CI (issue6351)

login
register
mail settings
Submitter phabricator
Date July 3, 2020, 10:25 a.m.
Message ID <differential-rev-PHID-DREV-5llzg46zye5j3muxj5l5-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46615/
State New
Headers show

Comments

phabricator - July 3, 2020, 10:25 a.m.
pulkit created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  In heptapod CI we create a skiplist of test-check* and don't want to run in
  other test suites as we have specific test suite for checks. However the
  skiplist was not working fine because we were putting test names in form of
  `tests/test-check*` in it which does not work with our test runner.
  
  We get the basename of the file and then put it in skiplist.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8677

AFFECTED FILES
  contrib/heptapod-ci.yml

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/contrib/heptapod-ci.yml b/contrib/heptapod-ci.yml
--- a/contrib/heptapod-ci.yml
+++ b/contrib/heptapod-ci.yml
@@ -6,7 +6,7 @@ 
     - hg clone . /tmp/mercurial-ci/ --noupdate
     - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'`
     - cd /tmp/mercurial-ci/
-    - ls -1 tests/test-check-*.* > /tmp/check-tests.txt
+    - ls -1 tests/test-check-*.* | xargs -n 1 basename > /tmp/check-tests.txt
 
 variables:
     PYTHON: python