From 2b1712717ba333895c1c41edda796b2c0815c2cc Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 3 May 2010 19:10:23 +0000 Subject: Fix race condition in store+cluster tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@940573 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/brokertest.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python') diff --git a/python/qpid/brokertest.py b/python/qpid/brokertest.py index 47168f6582..e05a172ab4 100644 --- a/python/qpid/brokertest.py +++ b/python/qpid/brokertest.py @@ -388,6 +388,7 @@ class Broker(Popen): def store_state(self): uuids = open(os.path.join(self.datadir, "cluster", "store.status")).readlines() null_uuid="00000000-0000-0000-0000-000000000000\n" + if len(uuids) < 2: return "unknown" # we looked while the file was being updated. if uuids[0] == null_uuid: return "empty" if uuids[1] == null_uuid: return "dirty" return "clean" -- cgit v1.2.1