summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/runTests
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-07-11 15:13:18 -0700
committerZac Medico <zmedico@gentoo.org>2012-07-11 15:13:18 -0700
commit48497bca12ac8b52740681a7a10200f0a58345ea (patch)
treee19f771da1c2acd33e3699debca3cb8805e34ca5 /pym/portage/tests/runTests
parentfdda543b51dde02483a40b9f867a35fc3521a135 (diff)
downloadportage-48497bca12ac8b52740681a7a10200f0a58345ea.tar.gz
portage-48497bca12ac8b52740681a7a10200f0a58345ea.tar.bz2
portage-48497bca12ac8b52740681a7a10200f0a58345ea.zip
tests: support NOCOLOR env variable
Diffstat (limited to 'pym/portage/tests/runTests')
-rwxr-xr-xpym/portage/tests/runTests3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/tests/runTests b/pym/portage/tests/runTests
index 91984a3a3..1c1008dff 100755
--- a/pym/portage/tests/runTests
+++ b/pym/portage/tests/runTests
@@ -37,6 +37,9 @@ import portage
# work the same regardless of global configuration file state/existence.
portage._disable_legacy_globals()
+if os.environ.get('NOCOLOR') in ('yes', 'true'):
+ portage.output.nocolor()
+
import portage.tests as tests
from portage.const import PORTAGE_BIN_PATH
path = os.environ.get("PATH", "").split(":")