From 8df09bfe03f0cd6e8bf284b22726c1274a3a7e42 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 25 Oct 2016 12:46:57 -0700 Subject: framework: fix loading JUnit results The JUnit loader was never updated to handle PID's as lists rather than a single int. This patch corrects that and allows JUnit results to be loaded again. Signed-off-by: Dylan Baker Tested-by: Mark Janes --- unittests/framework/backends/test_junit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unittests') diff --git a/unittests/framework/backends/test_junit.py b/unittests/framework/backends/test_junit.py index 6bc9e6aa6..06892ca73 100644 --- a/unittests/framework/backends/test_junit.py +++ b/unittests/framework/backends/test_junit.py @@ -56,7 +56,7 @@ _XML = """\ this/is/a/command\nThis is stdout this is stderr -pid: 1934 +pid: [1934] time start: 1.0 time end: 4.5 @@ -152,7 +152,7 @@ class TestProtectedLoad(object): expected = textwrap.dedent("""\ this is stderr - pid: 1934 + pid: [1934] time start: 1.0 time end: 4.5""") assert result.tests[self.testname].err.strip() == expected @@ -163,7 +163,7 @@ class TestProtectedLoad(object): def test_pid(self, result): """backends.junit._load: pid is loaded correctly.""" - assert result.tests[self.testname].pid == 1934 + assert result.tests[self.testname].pid == [1934] class TestJUnitBackend(object): -- cgit v1.2.3