array: Clear up inconsistency in T9220 output
authorBen Gamari <ben@smart-cactus.org>
Sun, 2 Apr 2017 17:04:26 +0000 (13:04 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 3 Apr 2017 01:13:03 +0000 (21:13 -0400)
ghc-8.2 and master disagreed on the order of the instances. Normalise this
difference away.

Updates array submodule.

libraries/array
testsuite/driver/testlib.py

index fc82074..db07d53 160000 (submodule)
@@ -1 +1 @@
-Subproject commit fc82074a9076d650610d71a966d8714f5217257f
+Subproject commit db07d534feb267d5f81e1301f6a0cb726c4c2ea2
index 7dedb33..a5da1e9 100644 (file)
@@ -493,6 +493,13 @@ def no_check_hp(name, opts):
 
 # ----
 
+def filter_stdout_lines( regex ):
+    """ Filter lines of stdout with the given regular expression """
+    import re
+    def f( name, opts ):
+        _normalise_fun(name, opts, lambda s: '\n'.join(re.findall(regex, s)))
+    return f
+
 def normalise_slashes( name, opts ):
     _normalise_fun(name, opts, normalise_slashes_)