[darcs-users] darcs patch: Make the running of tests more entertaining
Eric Kow
kowey at darcs.net
Fri Sep 11 19:55:15 UTC 2009
Hi Thorkil,
On Fri, Sep 11, 2009 at 21:33:03 +0200, Thorkil Naur wrote:
> Fri Sep 11 21:18:52 CEST 2009 Thorkil Naur <naur at post11.tele.dk>
> * Make the running of tests more entertaining
> With this change, the running of tests is less likely to strain your
> patience.
I'd like to apply this (because it annoys me too), but it conflicts with
our current repo. Would you mind amending and re-sending?
Interestingly, this has to do with the fact that line-adjacent patches
conflict, which I never really quite understood. More on that later.
Make the running of tests more entertaining
-------------------------------------------
> Thorkil Naur <naur at post11.tele.dk>**20090911191852
> With this change, the running of tests is less likely to strain your
> patience.
> ] hunk ./Setup.lhs 42
> doesDirectoryExist, doesFileExist,
> getCurrentDirectory, getDirectoryContents,
> removeDirectoryRecursive, removeFile, setCurrentDirectory)
> -import System.IO (openFile, IOMode (..))
> +import System.IO (openFile, IOMode (..), stdout, hSetBuffering, BufferMode (..))
> import System.Process (runProcess)
> import System.IO.Error ( isDoesNotExistError )
> import Data.List( isSuffixOf, sort, partition )
> hunk ./Setup.lhs 279
>
> execTests :: FilePath -> TestKind -> String -> [String] -> IO ()
> execTests darcs_path k fmt tests = do
> + hSetBuffering stdout NoBuffering
> let dir = (flat k) ++ "-" ++ fmt ++ ".dir"
> rmRf dir
> cloneTree (show k) dir
>
--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090911/6950ba8c/attachment.pgp>
More information about the darcs-users
mailing list