test_move_slot_ent: workaround for 1s timestamps
authorZac Medico <zmedico@gentoo.org>
Sat, 14 Jul 2012 01:40:20 +0000 (18:40 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 14 Jul 2012 01:40:20 +0000 (18:40 -0700)
pym/portage/tests/update/test_move_slot_ent.py

index 64475bcd5d2443eab7c9b235f9ee53abf0fb36b0..930aa773353d9dafb0ebe84d4a34d7973c47ee56 100644 (file)
@@ -119,6 +119,11 @@ class MoveSlotEntTestCase(TestCase):
                        finally:
                                portage.util.noiselimit = global_noiselimit
 
+                       # Workaround for cache validation not working
+                       # correctly when filesystem has timestamp precision
+                       # of 1 second.
+                       vardb._clear_cache()
+
                        # 0/2.30 -> 2/2.30
                        self.assertEqual("2/2.30",
                                vardb.aux_get("dev-libs/A-1", ["SLOT"])[0])