From d8af8b83b9a91ceb5ccaa78df789248059be92ce Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Thu, 1 Oct 2020 15:14:08 +0200 Subject: [PATCH] mgr/dashboard: Fix tox warning about PYTHONPATH Get rid of the warning "WARNING: Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration." by declaring "passenv=PYTHONPATH" according to the tox documentation. > PYTHONPATH will be passed down if explicitly defined. If PYTHONPATH exists in the host environment but is not declared in passenv a warning will be emitted. See https://tox.readthedocs.io/en/latest/config.html?highlight=passenv#conf-passenv. Signed-off-by: Volker Theile --- src/pybind/mgr/dashboard/tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pybind/mgr/dashboard/tox.ini b/src/pybind/mgr/dashboard/tox.ini index a4438cff326..efe18ffc8d7 100644 --- a/src/pybind/mgr/dashboard/tox.ini +++ b/src/pybind/mgr/dashboard/tox.ini @@ -35,6 +35,8 @@ deps = {[base]deps} {[base-test]deps} -rrequirements-extra.txt +passenv = + PYTHONPATH setenv = CFLAGS = -DXMLSEC_NO_SIZE_T PYTHONUNBUFFERED=1 @@ -159,6 +161,8 @@ description = deps = {[base]deps} {[base-test]deps} +passenv = + PYTHONPATH setenv = UNITTEST = true PYTHONPATH=$PYTHONPATH:.. -- 2.47.3