From a1d8947297ad00a97502f878cd887b1951a5fc7c Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 22 Apr 2018 14:57:43 -0700 Subject: [PATCH] Fix broken test stripping --- src/ShellCheck/AnalyzerLib.hs | 3 +-- striptests | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ShellCheck/AnalyzerLib.hs b/src/ShellCheck/AnalyzerLib.hs index d59cef0..11b3db5 100644 --- a/src/ShellCheck/AnalyzerLib.hs +++ b/src/ShellCheck/AnalyzerLib.hs @@ -39,8 +39,7 @@ import Data.Maybe import Data.Semigroup import Test.QuickCheck.All (forAllProperties) -import Test.QuickCheck.Test (maxSuccess, quickCheckWithResult, - stdArgs) +import Test.QuickCheck.Test (maxSuccess, quickCheckWithResult, stdArgs) type Analysis = AnalyzerM () type AnalyzerM a = RWS Parameters [TokenComment] Cache a diff --git a/striptests b/striptests index 11aaf79..78c5220 100755 --- a/striptests +++ b/striptests @@ -29,7 +29,7 @@ detestify() { } /LANGUAGE TemplateHaskell/ { next; } - /^import Test\./ { next; } + /^import.*Test\./ { next; } /^module/ { sub(/,[^,)]*runTests/, "");