Skip to content

Commit

Permalink
Allow overriding Rust toolchain in tox runs (#12827) (#12830)
Browse files Browse the repository at this point in the history
It can be convenient to use different versions of the Rust toolchain for
various `tox` runs.  This can already be done externally to `tox`
by a stateful `rustup override set <x>` followed by clearing the
override after the tox run, but allowing the environment variable to
pass through lets it be localised to just a single run.

(cherry picked from commit b362df0)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
  • Loading branch information
mergify[bot] and jakelishman authored Jul 26, 2024
1 parent c5d8b01 commit 9175286
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ setenv =
QISKIT_TEST_CAPTURE_STREAMS=1
QISKIT_PARALLEL=FALSE
passenv =
RUSTUP_TOOLCHAIN
RAYON_NUM_THREADS
OMP_NUM_THREADS
QISKIT_PARALLEL
Expand Down

0 comments on commit 9175286

Please sign in to comment.