[Git][ghc/ghc][wip/submod-bumps] testsuite: Fix fragile_for test modifier

Ben Gamari gitlab at gitlab.haskell.org
Mon Jun 10 23:09:03 UTC 2019



Ben Gamari pushed to branch wip/submod-bumps at Glasgow Haskell Compiler / GHC


Commits:
7124b715 by Ben Gamari at 2019-06-10T23:08:57Z
testsuite: Fix fragile_for test modifier

- - - - -


1 changed file:

- testsuite/driver/testlib.py


Changes:

=====================================
testsuite/driver/testlib.py
=====================================
@@ -257,14 +257,14 @@ def fragile( bug ):
 
     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
     test ways as documented in the given ticket.
     """
     def helper( name, opts, bug=bug, ways=ways ):
         record_broken(name, opts, bug)
-        opts.omit_ways = ways
+        opts.omit_ways += ways
 
     return helper
 
@@ -274,7 +274,7 @@ def omit_ways( ways ):
     return lambda name, opts, w=ways: _omit_ways( name, opts, w )
 
 def _omit_ways( name, opts, ways ):
-    opts.omit_ways = ways
+    opts.omit_ways += ways
 
 # -----
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/7124b7152a6fdc4a7a91a21ba20a0e7c0656fde2

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/7124b7152a6fdc4a7a91a21ba20a0e7c0656fde2
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20190610/22325711/attachment-0001.html>


More information about the ghc-commits mailing list