diff options
| author | Alan Conway <aconway@apache.org> | 2010-05-03 19:10:23 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-05-03 19:10:23 +0000 |
| commit | 2b1712717ba333895c1c41edda796b2c0815c2cc (patch) | |
| tree | c932251525e45b609c32e54264246ae9d7b440ef /python | |
| parent | 8020e362ca29bc44819df5b087b5fe0854530bea (diff) | |
| download | qpid-python-2b1712717ba333895c1c41edda796b2c0815c2cc.tar.gz | |
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
Diffstat (limited to 'python')
| -rw-r--r-- | python/qpid/brokertest.py | 1 |
1 files changed, 1 insertions, 0 deletions
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" |
