Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Im not sure why this is only breaking on jenkins. should have broke l…
Browse files Browse the repository at this point in the history
…ocally too
  • Loading branch information
buzztroll committed May 26, 2011
1 parent 1af382d commit 833d02a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -92,6 +92,7 @@ def add(self, src, md5sum):
if dstname in list:
msg = "The file with md5sum %s is already in the cache" % (md5sum)
self._log.info(msg)
os.utime(dstname, None)
return False
sz = os.path.getsize(src)
if not self._make_room_for(list, sz):
Expand Down
2 changes: 2 additions & 0 deletions control/src/python/workspacecontrol/main/cache_tests.py
Expand Up @@ -146,6 +146,8 @@ def test_touch_expulsion(self):

list = cache.list_cache()
self.assertEqual(len(list), 3)
print list
print work_sums
self.assertTrue(work_sums[0] in list)
self.assertTrue(work_sums[1] not in list)

Expand Down

0 comments on commit 833d02a

Please sign in to comment.