diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-04-19 11:46:30 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-04-19 11:46:30 +0100 |
commit | 5ab7b2d0cc59764a6c49eb9ad2ca3f18dc7c1a40 (patch) | |
tree | 0447e551c1564c925096f1b5f5a51278d4934364 | |
parent | 89285d3f44f734a8fe00261e2451bb3225b2718b (diff) |
Ignore dotfiles when running a directory of tests
-rwxr-xr-x | tt.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |