aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2010-07-14 17:59:47 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2010-07-14 17:59:47 -0300
commit6acfc545250a102fcc41a3ec8d892b84885b4185 (patch)
tree18a35b01a3267fadda0775a3ff41a2fba4fb6ef8 /scripts
parentremoved my configuration file for development (diff)
downloadg-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-xscripts/run_tests.py8
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'] = ''