pyoxidized: add a copy of the `templates` directory in the right location stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 18 Aug 2021 01:10:40 +0200
branchstable
changeset 47835 da39b9c1c486
parent 47834 d3f890e04525
child 47836 f3b1df44b716
pyoxidized: add a copy of the `templates` directory in the right location This fix about 10 extra test bring the number of currently failing test to about 12. Differential Revision: https://phab.mercurial-scm.org/D11287
Makefile
--- a/Makefile	Wed Aug 18 01:07:38 2021 +0200
+++ b/Makefile	Wed Aug 18 01:10:40 2021 +0200
@@ -270,9 +270,15 @@
 pyoxidizer:
 	$(PYOXIDIZER) build --path ./rust/hgcli --release
 
+
+PYOX_DIR=build/pyoxidizer/x86_64-pc-windows-msvc/release/app
+
 # 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
+	rm -rf $(PYOX_DIR)/templates
+	cp -ar $(PYOX_DIR)/lib/mercurial/templates $(PYOX_DIR)/templates
+
 
 .PHONY: help all local build doc cleanbutpackages clean install install-bin \
 	install-doc install-home install-home-bin install-home-doc \