[commit: testsuite] master: Clean the .hpc directories (576fca8)

Ian Lynagh igloo at earth.li
Thu Jan 24 19:19:39 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/576fca8930b22cabcebfa4e6487d0c2619bce231

>---------------------------------------------------------------

commit 576fca8930b22cabcebfa4e6487d0c2619bce231
Author: Ian Lynagh <ian at well-typed.com>
Date:   Thu Jan 24 17:34:47 2013 +0000

    Clean the .hpc directories

>---------------------------------------------------------------

 driver/testlib.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/driver/testlib.py b/driver/testlib.py
index f21b380..b57a080 100644
--- a/driver/testlib.py
+++ b/driver/testlib.py
@@ -762,6 +762,11 @@ def test_common_work (name, opts, func, args):
                     pass
 
             try:
+                shutil.rmtree(in_testdir('.hpc.' + name))
+            except:
+                pass
+
+            try:
                 cleanCmd = getTestOpts().clean_cmd
                 if cleanCmd != None:
                     result = runCmdFor(name, 'cd ' + getTestOpts().testdir + ' && ' + cleanCmd)





More information about the ghc-commits mailing list