summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-04-19 11:46:30 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-04-19 11:46:30 +0100
commit5ab7b2d0cc59764a6c49eb9ad2ca3f18dc7c1a40 (patch)
tree0447e551c1564c925096f1b5f5a51278d4934364
parent89285d3f44f734a8fe00261e2451bb3225b2718b (diff)
Ignore dotfiles when running a directory of tests
-rwxr-xr-xtt.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tt.hs b/tt.hs
index eddacd4..f2798fc 100755
--- a/tt.hs
+++ b/tt.hs
@@ -39,7 +39,7 @@ unprefix :: FilePath -> String -> String
unprefix testDir = fromMaybe <*> stripPrefix testDir
isPython :: String -> Bool
-isPython = isSuffixOf ".py"
+isPython s = isSuffixOf ".py" s && head s /= '.'
expand :: FilePath -> Bool -> String -> IO [String]
expand testDir inTree s