diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-03-10 17:45:53 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-03-10 17:45:53 -0500 |
commit | c5b49bdbad10a169b52181df7b37b168cc9800a5 (patch) | |
tree | de1ff7d226a941565f5d882624e4be73200f2d0e /tests/long | |
parent | 25dc5569c3ed046b5c0163e6f8dc5342fe69eb33 (diff) | |
download | gem5-c5b49bdbad10a169b52181df7b37b168cc9800a5.tar.xz |
If you can't get rid of the files you want to make sure are gone, assume they're already gone. Print a warning and move on.
--HG--
extra : convert_revision : 192740b1e1a7a30222c4e79c7e7a5770e682f014
Diffstat (limited to 'tests/long')
-rw-r--r-- | tests/long/70.twolf/test.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/long/70.twolf/test.py b/tests/long/70.twolf/test.py index 310c0cfc3..65973c1ee 100644 --- a/tests/long/70.twolf/test.py +++ b/tests/long/70.twolf/test.py @@ -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 |