1 Jun 2011 06:47
[PATCH] KVM-test: Use isAlive to check the status of Thread
Yiqiao Pu <ypu <at> redhat.com>
2011-06-01 04:47:39 GMT
2011-06-01 04:47:39 GMT
The attribute is_alive is imported in python 2.6, so can not run
it in hosts with python 2.4 such as RHEL5. Just use isAlive().
Signed-off-by: Yiqiao Pu <ypu <at> redhat.com>
---
client/virt/tests/netperf.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/client/virt/tests/netperf.py b/client/virt/tests/netperf.py
index 8a80d13..458364a 100644
--- a/client/virt/tests/netperf.py
+++ b/client/virt/tests/netperf.py
<at> <at> -95,7 +95,7 <at> <at> def run_netperf(test, params, env):
while not completed:
completed = True
for b in bg:
- if b.is_alive():
+ if b.isAlive():
completed = False
finally:
try:
--
--
1.7.1
RSS Feed