summaryrefslogtreecommitdiff
path: root/framework/backends/junit.py
diff options
context:
space:
mode:
Diffstat (limited to 'framework/backends/junit.py')
-rw-r--r--framework/backends/junit.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/backends/junit.py b/framework/backends/junit.py
index 4c9b7afa9..018cecd2b 100644
--- a/framework/backends/junit.py
+++ b/framework/backends/junit.py
@@ -29,6 +29,10 @@ try:
from lxml import etree
except ImportError:
import xml.etree.cElementTree as etree
+try:
+ import simplejson as json
+except ImportError:
+ import json
import six
@@ -396,7 +400,7 @@ def _load(results_file):
result.time.end = float(line[len('time end: '):])
continue
elif line.startswith('pid:'):
- result.pid = int(line[len('pid: '):])
+ result.pid = json.loads(line[len('pid: '):])
continue