[Git][ghc/ghc][master] Repair `codes` test on OpenBSD by explicitly requesting extended RE

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Tue Aug 29 11:55:33 UTC 2023



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
4f5fb500 by Greg Steuck at 2023-08-29T07:55:13-04:00
Repair `codes` test on OpenBSD by explicitly requesting extended RE

- - - - -


1 changed file:

- linters/lint-codes/LintCodes/Coverage.hs


Changes:

=====================================
linters/lint-codes/LintCodes/Coverage.hs
=====================================
@@ -26,7 +26,7 @@ getCoveredCodes =
   -- Run git grep on .stdout and .stderr files in the testsuite subfolder.
   do { codes <- lines
             <$> readProcess "git"
-                [ "grep", "-oh", codeRegex
+                [ "grep", "-Eoh", codeRegex
                         -- -oh: only show the match, and omit the filename.
                 , "--", ":/testsuite/*.stdout", ":/testsuite/*.stderr"
                 , ":!*/codes.stdout" -- Don't include the output of this test itself.
@@ -35,7 +35,7 @@ getCoveredCodes =
 
 -- | Regular expression to parse a diagnostic code.
 codeRegex :: String
-codeRegex = "\\[[A-Za-z]\\+-[0-9]\\+\\]"
+codeRegex = "\\[[A-Za-z]+-[0-9]+\\]"
 
 -- | Turn a string that matches the 'codeRegex' regular expression
 -- into its corresponding 'DiagnosticCode'.



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4f5fb500148485dcbf407ab428f044ae879a3bcc

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4f5fb500148485dcbf407ab428f044ae879a3bcc
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/20230829/9a95585e/attachment-0001.html>


More information about the ghc-commits mailing list