Skip to content
Snippets Groups Projects
Commit afb3cccc authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

run-tests: detect HGWITHRUSTEXT value

Without this, some manual check in tests/test-dirstate.t could get confused by
the lack of `rust` in module policy and break the test.
parent a4ec7a92
No related branches found
No related tags found
1 merge request!668Merge stable into default
...@@ -3148,6 +3148,13 @@ ...@@ -3148,6 +3148,13 @@
self._custom_bin_dir = os.path.join(self._hgtmp, b'custom-bin') self._custom_bin_dir = os.path.join(self._hgtmp, b'custom-bin')
os.makedirs(self._custom_bin_dir) os.makedirs(self._custom_bin_dir)
# detect and enforce an alternative way to specify rust extension usage
if (
not (self.options.pure or self.options.rust or self.options.no_rust)
and os.environ.get("HGWITHRUSTEXT") == "cpython"
):
self.options.rust = True
if self.options.with_hg: if self.options.with_hg:
self._installdir = None self._installdir = None
whg = self.options.with_hg whg = self.options.with_hg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment