diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-07-14 17:59:47 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-07-14 17:59:47 -0300 |
commit | 6acfc545250a102fcc41a3ec8d892b84885b4185 (patch) | |
tree | 18a35b01a3267fadda0775a3ff41a2fba4fb6ef8 /scripts | |
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
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/run_tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
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'] = '' |