Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
0656c910
Commit
0656c910
authored
Aug 07, 2018
by
Mathieu Giraud
Browse files
tools/should.py: update from upstream
parent
19d68ea9
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/should.py
View file @
0656c910
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment