diff mx/commands.py @ 8509:83fde86ae759

-Merge with basic-graal-gate
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Fri, 22 Mar 2013 12:57:51 +0100
parents c3657d00e343 87346100d7a5
children 373d7774a14d
line wrap: on
line diff
--- a/mx/commands.py	Fri Mar 22 12:56:04 2013 +0100
+++ b/mx/commands.py	Fri Mar 22 12:57:51 2013 +0100
@@ -761,8 +761,10 @@
         prefixArgs = ['-XX:-BootstrapGraal', '-esa', '-ea']
         vm(prefixArgs + vmArgs + ['-cp', projectscp + ':' + mxdir, name] + [testfile])
 
-    _run_tests(args, harness, annotations, testfile)
-    os.remove(testfile)
+    try:
+        _run_tests(args, harness, annotations, testfile)
+    finally:
+        os.remove(testfile)
 
 def unittest(args):
     """run the JUnit tests (all testcases)