Commit 0656c910 authored by Mathieu Giraud's avatar Mathieu Giraud

tools/should.py: update from upstream

parent 19d68ea9
......@@ -275,7 +275,7 @@ def populate_variables(var):
for v in var:
try:
key, var = v.split('=')
variables.append(('$' + key, var))
variables = [('$' + key, var)] + variables
except IOError:
raise ShouldException('Error in parsing variable definition: ' + v)
......@@ -681,7 +681,7 @@ class TestSuite():
# Directive -- Options
if l.startswith(DIRECTIVE_OPTIONS):
opts, unknown = options.parse_known_args(l[len(DIRECTIVE_OPTIONS):].split())
self.variables += populate_variables(opts.var)
self.variables = populate_variables(opts.var) + self.variables
if opts.mod:
self.modifiers += ''.join(opts.mod)
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment