Commit d064f965 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

tox: specific testenv for HDK context

In the context of the Heptapod Development Kit (HDK), we use a
wrapper launch script, which gives us the opportunity to inject
environment variables. Notably we can:

- use the same version as Python Heptapod components (such as
  HGitaly
- avoid the system defaults. A current use case is that pytest-parallel
  does not support Python 3.9 yet.

With the `HDK_HEPTAPOD_TESTS_BASEPYTHON` environment variable,
we can define `testenv:hdk` without local modifications to `tox.ini`.

The default `python3` value should help in transition time, even if
it doesn't seem likely that we'll have wrapper scripts that use the
`hdk` testenv without providing the environment variable value.
parent ea84547e9928
Pipeline #17873 passed with stages
in 22 minutes and 57 seconds
...@@ -15,3 +15,6 @@ commands = ...@@ -15,3 +15,6 @@ commands =
[testenv:omnibus] [testenv:omnibus]
basepython = /opt/gitlab/embedded/bin/python3 basepython = /opt/gitlab/embedded/bin/python3
[testenv:hdk]
basepython = {env:HDK_HEPTAPOD_TESTS_BASEPYTHON:python3}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment