From: Michael Polenchuk Date: Tue, 15 Nov 2016 13:38:08 +0000 (+0300) Subject: [rally] Check output for splitting in safe way X-Git-Tag: colorado.3.0~15 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F24353%2F1;p=functest.git [rally] Check output for splitting in safe way Change-Id: If419a87057e15687088009968f5ec037fb051f95 Signed-off-by: Michael Polenchuk --- diff --git a/testcases/OpenStack/rally/run_rally-cert.py b/testcases/OpenStack/rally/run_rally-cert.py index 29fd0a334..bc80c0f36 100755 --- a/testcases/OpenStack/rally/run_rally-cert.py +++ b/testcases/OpenStack/rally/run_rally-cert.py @@ -239,7 +239,7 @@ def get_output(proc, test_name): except ValueError: logger.info('Percentage error: %s, %s' % (percentage, line)) nb_totals += 1 - elif "Full duration" in line: + elif "Full duration: " in line: duration = line.split(': ')[1] try: overall_duration += float(duration)