|
|
@ -2335,7 +2335,7 @@ class Interpreter(InterpreterBase): |
|
|
|
else: |
|
|
|
else: |
|
|
|
if not isinstance(envlist, list): |
|
|
|
if not isinstance(envlist, list): |
|
|
|
envlist = [envlist] |
|
|
|
envlist = [envlist] |
|
|
|
env = {} |
|
|
|
env = EnvironmentVariablesHolder() |
|
|
|
for e in envlist: |
|
|
|
for e in envlist: |
|
|
|
if '=' not in e: |
|
|
|
if '=' not in e: |
|
|
|
raise InterpreterException('Env var definition must be of type key=val.') |
|
|
|
raise InterpreterException('Env var definition must be of type key=val.') |
|
|
@ -2344,7 +2344,8 @@ class Interpreter(InterpreterBase): |
|
|
|
val = val.strip() |
|
|
|
val = val.strip() |
|
|
|
if ' ' in k: |
|
|
|
if ' ' in k: |
|
|
|
raise InterpreterException('Env var key must not have spaces in it.') |
|
|
|
raise InterpreterException('Env var key must not have spaces in it.') |
|
|
|
env[k] = val |
|
|
|
env.add_var(env.held_object.set, [k, val], kwargs) |
|
|
|
|
|
|
|
env = env.held_object |
|
|
|
return env |
|
|
|
return env |
|
|
|
|
|
|
|
|
|
|
|
def add_test(self, node, args, kwargs, is_base_test): |
|
|
|
def add_test(self, node, args, kwargs, is_base_test): |
|
|
|