From 6acfc545250a102fcc41a3ec8d892b84885b4185 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 14 Jul 2010 17:59:47 -0300 Subject: run_tests.py now clean the environment vars before run the tests --- scripts/run_tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts') 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'] = '' -- cgit v1.2.3-65-gdbad