[commit: testsuite] ghc-7.6: Clean the .hpc directories (61b4c39)

Ian Lynagh igloo at earth.li
Thu Jan 24 20:11:57 CET 2013


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

On branch  : ghc-7.6

http://hackage.haskell.org/trac/ghc/changeset/61b4c3953e050e98065d9a3f3f915003738d281f

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

commit 61b4c3953e050e98065d9a3f3f915003738d281f
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 4d526c2..edf469d 100644
--- a/driver/testlib.py
+++ b/driver/testlib.py
@@ -662,6 +662,11 @@ def test_common_work (name, opts, func, args):
             clean(getTestOpts().clean_files)
 
             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