Skip to content

Commit

Permalink
nicer regression test output
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjoosten committed Jan 7, 2024
1 parent c7f552a commit fdea426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Ampersand/Test/Regression.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Conduit
import Data.Yaml
import qualified RIO.ByteString.Lazy as BL
import qualified RIO.ByteString.Lazy.Partial as BLPartial
import RIO.List as L
import RIO.Process
import qualified RIO.Text as T
import System.Directory
Expand Down Expand Up @@ -108,7 +109,7 @@ doTestsInDir = awaitForever once
where
once x = do
lift . logInfo $ ">> " <> displayShow (traversalNr x) <> ": " <> (display . T.pack $ path x)
let candidates = filter isCandidate (filesOf . dirContent $ x)
let candidates = L.sort . filter isCandidate . filesOf . dirContent $ x
where
isCandidate :: FilePath -> Bool
isCandidate fp = "adl" `isExtensionOf` fp
Expand Down

0 comments on commit fdea426

Please sign in to comment.