diff options
author | 2010-07-14 17:59:47 -0300 | |
---|---|---|
committer | 2010-07-14 17:59:47 -0300 | |
commit | 6acfc545250a102fcc41a3ec8d892b84885b4185 (patch) | |
tree | 18a35b01a3267fadda0775a3ff41a2fba4fb6ef8 | |
parent | removed my configuration file for development (diff) | |
download | g-octave-6acfc545250a102fcc41a3ec8d892b84885b4185.tar.gz g-octave-6acfc545250a102fcc41a3ec8d892b84885b4185.tar.bz2 g-octave-6acfc545250a102fcc41a3ec8d892b84885b4185.zip |
run_tests.py now clean the environment vars before run the tests
-rw-r--r-- | .hgignore | 1 | ||||
-rwxr-xr-x | scripts/run_tests.py | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -5,3 +5,4 @@ ^docs/_build/[^(\.keep)] ^db/ \.bak$ +\.devel$ diff --git a/scripts/run_tests.py b/scripts/run_tests.py index 69e25ae..c65a289 100755 --- a/scripts/run_tests.py +++ b/scripts/run_tests.py @@ -16,6 +16,14 @@ import os import sys import unittest +# cleaning the environment vars +to_remove = [] +for var_name in os.environ: + if var_name.upper().startswith('GOCTAVE_'): + to_remove.append(var_name) +for var_name in to_remove: + del os.environ[var_name] + # disabling the logging os.environ['GOCTAVE_LOG_LEVEL'] = '' |