Commit 329dcd7a authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

testsuite: Fix fragile_for test modifier

parent bb7ed32f
...@@ -257,14 +257,14 @@ def fragile( bug ): ...@@ -257,14 +257,14 @@ def fragile( bug ):
return helper return helper
def fragile_for( name, opts, bug, ways ): def fragile_for( bug, ways ):
""" """
Indicates that the test should be skipped due to fragility in the given Indicates that the test should be skipped due to fragility in the given
test ways as documented in the given ticket. test ways as documented in the given ticket.
""" """
def helper( name, opts, bug=bug, ways=ways ): def helper( name, opts, bug=bug, ways=ways ):
record_broken(name, opts, bug) record_broken(name, opts, bug)
opts.omit_ways = ways opts.omit_ways += ways
return helper return helper
...@@ -274,7 +274,7 @@ def omit_ways( ways ): ...@@ -274,7 +274,7 @@ def omit_ways( ways ):
return lambda name, opts, w=ways: _omit_ways( name, opts, w ) return lambda name, opts, w=ways: _omit_ways( name, opts, w )
def _omit_ways( name, opts, ways ): def _omit_ways( name, opts, ways ):
opts.omit_ways = ways opts.omit_ways += ways
# ----- # -----
......
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