Rev 5814: On babune, the test fails because we can't set mtime on a dir. in http://bazaar.launchpad.net/~jameinel/bzr/integration

John Arbash Meinel john at arbash-meinel.com
Fri Apr 29 10:14:49 UTC 2011


At http://bazaar.launchpad.net/~jameinel/bzr/integration

------------------------------------------------------------
revno: 5814
revision-id: john at arbash-meinel.com-20110429101438-yoe6dfiutt49aptz
parent: pqm at pqm.ubuntu.com-20110428154317-2c50aikmc92jci4c
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: integration
timestamp: Fri 2011-04-29 12:14:38 +0200
message:
  On babune, the test fails because we can't set mtime on a dir.
  Skip it.
-------------- next part --------------
=== modified file 'bzrlib/tests/test__dirstate_helpers.py'
--- a/bzrlib/tests/test__dirstate_helpers.py	2011-04-19 13:59:07 +0000
+++ b/bzrlib/tests/test__dirstate_helpers.py	2011-04-29 10:14:38 +0000
@@ -1020,7 +1020,11 @@
                          state._dirblock_state)
         # Change the last-modified time for the directory
         t = time.time() - 100.0
-        os.utime('a', (t, t))
+        try:
+            os.utime('a', (t, t))
+        except OSError:
+            # It looks like Win32 + FAT doesn't allow to change times on a dir.
+            raise tests.TestSkipped("can't update mtime of a dir on FAT")
         saved_packed_stat = entry[1][0][-1]
         self.assertIs(None, self.do_update_entry(state, entry, 'a'))
         # We *do* go ahead and update the information in the dirblocks, but we



More information about the bazaar-commits mailing list