aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/ptest-parser.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/ptest-parser.py b/scripts/ptest-parser.py
index 8fef552..4b2c206 100755
--- a/scripts/ptest-parser.py
+++ b/scripts/ptest-parser.py
@@ -62,22 +62,22 @@ def create_log_dict(argslog, file_path):
except:
result = None
if result:
- if result in "BEGIN":
+ if result in "BEGIN:" :
test_module = test_id
test_module = test_module.replace('/usr/lib/', '')
test_module = test_module.replace('/ptest', '')
logs = []
logs.append(content[i])
ptest_file_path = os.path.join(file_path, test_module)
- elif result in "PASS":
+ elif result in "PASS:":
passed = passed + 1
logs.append(content[i])
- elif result in "FAIL":
+ elif result in "FAIL:":
failed = failed + 1
failures = "{0}:{1}" .format(result,test_id)
failures_log.append(failures)
logs.append(content[i])
- elif result in "END":
+ elif result in "END:":
total = passed + failed
if total == 0:
passrate = 0