tests/run-tests.py
changeset 33140 f458a6701983
parent 33126 98e2c78e309c
child 33203 cf826b9e9ea4
--- a/tests/run-tests.py	Thu Jun 29 15:21:52 2017 -0700
+++ b/tests/run-tests.py	Thu Jun 29 11:29:19 2017 -0700
@@ -905,7 +905,7 @@
 
         # Only restore environment variable names that the shell allows
         # us to export.
-        name_regex = re.compile('[a-zA-Z][a-zA-Z0-9_]*')
+        name_regex = re.compile('^[a-zA-Z][a-zA-Z0-9_]*$')
 
         with open(scriptpath, 'w') as envf:
             for name, value in os.environ.items():