xena_deadlock: Fix xena2544.exe deadlock 43/16843/6
authorChristian Trautman <ctrautma@redhat.com>
Tue, 12 Jul 2016 16:46:49 +0000 (12:46 -0400)
committerChristian Trautman <ctrautma@redhat.com>
Thu, 21 Jul 2016 17:41:55 +0000 (13:41 -0400)
commitf8ebc52a84ac662c6a2a5e8a4775d4a6217e7bb4
treebb0401f56e6fbc14d0c92c754be18f3352c0f6d3
parentf35edfc71ee92d67e6cb587b116b64c3a005ac71
xena_deadlock: Fix xena2544.exe deadlock

Fix Xena2544.exe execution with mono where sometimes the
Xena process says complete, but the mono process doesn't exit.

Changes call of Xena2544.exe from communicate thread lock to a
wait try/catch block and checks the log periodically to see
if a deadlock has occured and if so, the mono pid is terminated
to prevent deadlock.

* Fix one small issue with typecasting to int, changed to float

JIRA: VSPERF-319

Change-Id: Ie7a86a2b9ff9cdfacba5a912ad17df6cc0581702
Signed-off-by: Christian Trautman <ctrautma@redhat.com>
tools/pkt_gen/xena/xena.py