jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/971949 )

Change subject: [CI] set PYWIKIBOT_NO_USER_CONFIG environment variable within 
shell
......................................................................

[CI] set PYWIKIBOT_NO_USER_CONFIG environment variable within shell

setenv is not respected in tox;
therefore set this environment variable in run-tests.sh

Bug: T349599
Change-Id: If7fb753ca22721c381cc7817708562d99d2b175e
---
M run-tests.sh
M tox.ini
2 files changed, 17 insertions(+), 4 deletions(-)

Approvals:
  Hashar: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/run-tests.sh b/run-tests.sh
index 2941b01..edaf9ae 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -11,4 +11,8 @@
 done

 cd $1/pywikibot-build
+
+# T349599: setenv is not respected in tox;
+# therefore set this environment variable here
+export PYWIKIBOT_NO_USER_CONFIG=2
 python -m unittest -v tests/l10n_tests.py
diff --git a/tox.ini b/tox.ini
index 054bd24..732623c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,10 +10,6 @@
 envlist = py37
 
 [testenv]
-setenv =
-    VIRTUAL_ENV={envdir}
-    PYWIKIBOT_NO_USER_CONFIG=2
-
 commands = ./run-tests.sh {envtmpdir}

 deps =

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/i18n/+/971949
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/i18n
Gerrit-Branch: master
Gerrit-Change-Id: If7fb753ca22721c381cc7817708562d99d2b175e
Gerrit-Change-Number: 971949
Gerrit-PatchSet: 8
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to