Merge "Touch in use image files when they're checked."

This commit is contained in:
Jenkins
2012-03-29 18:53:39 +00:00
committed by Gerrit Code Review

View File

@@ -563,6 +563,10 @@ class ImageCacheManagerTestCase(test.TestCase):
self.stubs.Set(os.path, 'exists', lambda x: exists(x)) self.stubs.Set(os.path, 'exists', lambda x: exists(x))
# We need to stub utime as well
orig_utime = os.utime
self.stubs.Set(os, 'utime', lambda x, y: None)
# Fake up some instances in the instances directory # Fake up some instances in the instances directory
orig_listdir = os.listdir orig_listdir = os.listdir