summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will@willthompson.co.uk>2013-04-07 19:39:53 +0100
committerWill Thompson <will@willthompson.co.uk>2013-04-07 19:39:53 +0100
commitf21853cdea26200d4596c5306e2c5dbec3f31952 (patch)
tree2e5dad3eea5bedc6e5140641de8eed2097286a06
parent4187c6c41fc153b0dd2bbe881017bc946d01d013 (diff)
Run tests in lexicographical order.HEADmaster
-rwxr-xr-xtt.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tt.hs b/tt.hs
index e289e88..6f22b76 100755
--- a/tt.hs
+++ b/tt.hs
@@ -6,7 +6,7 @@ import System.Directory ( doesFileExist
, doesDirectoryExist
, getDirectoryContents
)
-import Data.List (intercalate, stripPrefix, isSuffixOf)
+import Data.List (intercalate, stripPrefix, isSuffixOf, sort)
import Data.Maybe (fromMaybe, listToMaybe, isNothing, fromJust)
import Control.Applicative ((<$>), (<*>))
import Control.Monad (when, filterM, forever, replicateM_)
@@ -139,7 +139,7 @@ expand testDir inTree s
isDirectory <- doesDirectoryExist dir
if isDirectory
- then (map (s </>) . filter isPython) <$> getDirectoryContents dir
+ then (map (s </>) . sort . filter isPython) <$> getDirectoryContents dir
else return [s ++ ".py"]
{- Stupid project-specific crap detection -}