[elbe-devel] [PATCH v2 3/5] commands: test: Fix index error

Olivier Dion dion at linutronix.de
Mon Aug 17 15:49:18 CEST 2020


result.unexpectedSuccesses returns a list of test cases, and not a
list of tuple like the other attributes.

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/commands/test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/commands/test.py b/elbepack/commands/test.py
index a1a5af59..2c84e2b3 100644
--- a/elbepack/commands/test.py
+++ b/elbepack/commands/test.py
@@ -187,7 +187,7 @@ def run_command(argv):
             fail_cnt += 1
 
         for us in result.unexpectedSuccesses:
-            case.add_failure_info(message=us[1])
+            case.add_failure_info(message=us)
             err_cnt += 1
 
         for skip in result.skipped:
-- 
2.28.0



More information about the elbe-devel mailing list