aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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'] = ''