Clean the .hpc directories
authorIan Lynagh <ian@well-typed.com>
Thu, 24 Jan 2013 17:34:47 +0000 (17:34 +0000)
committerIan Lynagh <ian@well-typed.com>
Thu, 24 Jan 2013 17:34:47 +0000 (17:34 +0000)
testsuite/driver/testlib.py

index f21b380..b57a080 100644 (file)
@@ -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)