Patchwork D11286: pyoxidized: add a dedicated target in the tests

login
register
mail settings
Submitter phabricator
Date Aug. 18, 2021, 1:01 a.m.
Message ID <differential-rev-PHID-DREV-ha7agtpgzr2oxpkv3q44-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49603/
State Superseded
Headers show

Comments

phabricator - Aug. 18, 2021, 1:01 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  We will need to setup more items to make the "quick" version work on stable,
  having a dedicated operation will allow to contains change to that operation.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

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

AFFECTED FILES
  Makefile
  tests/run-tests.py

CHANGE DETAILS




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

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -3910,7 +3910,7 @@ 
         vlog('# build a pyoxidized version of Mercurial')
         assert os.path.dirname(self._bindir) == self._installdir
         assert self._hgroot, 'must be called after _installhg()'
-        cmd = b'"%(make)s" pyoxidizer' % {
+        cmd = b'"%(make)s" pyoxidizer-windows-tests' % {
             b'make': b'make',
         }
         cwd = self._hgroot
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -270,6 +270,10 @@ 
 pyoxidizer:
 	$(PYOXIDIZER) build --path ./rust/hgcli --release
 
+# a temporary target to setup all we need for run-tests.py --pyoxidizer
+# (should go away as the run-tests implementation improves
+pyoxidizer-windows-tests: pyoxidizer
+
 .PHONY: help all local build doc cleanbutpackages clean install install-bin \
 	install-doc install-home install-home-bin install-home-doc \
 	dist dist-notests check tests rust-tests check-code format-c \