If you can't get rid of the files you want to make sure are gone, assume they're...
authorGabe Black <gblack@eecs.umich.edu>
Sat, 10 Mar 2007 22:45:53 +0000 (17:45 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Sat, 10 Mar 2007 22:45:53 +0000 (17:45 -0500)
--HG--
extra : convert_revision : 192740b1e1a7a30222c4e79c7e7a5770e682f014

tests/long/70.twolf/test.py

index 310c0cfc3f6b25a990057d0598dee40c71c285ed..65973c1ee26aae3c463148e8a815a3b1676e3c2d 100644 (file)
@@ -37,5 +37,11 @@ cwd = root.system.cpu.workload.cwd
 #Remove two files who's presence or absence affects execution
 sav_file = os.path.join(cwd, workload.input_set + '.sav')
 sv2_file = os.path.join(cwd, workload.input_set + '.sv2')
-os.unlink(sav_file)
-os.unlink(sv2_file)
+try:
+    os.unlink(sav_file)
+except:
+    print "Couldn't unlink ", sav_file
+try:
+    os.unlink(sv2_file)
+except:
+    print "Couldn't unlink ", sv2_file