linux/tools/testing/kunit
Daniel Latypov 9a6bb30a88 kunit: tool: fix --json output for skipped tests
Currently, KUnit will report SKIPPED tests as having failed if one uses
--json.

Add the missing if statement to set the appropriate status ("SKIP").
See https://api.kernelci.org/schema-test-case.html:
  "status": {
      "type": "string",
      "description": "The status of the execution of this test case",
      "enum": ["PASS", "FAIL", "SKIP", "ERROR"],
      "default": "PASS"
  },
with this, we now can properly produce all four of the statuses.

Fixes: 5acaf6031f ("kunit: tool: Support skipped tests in kunit_tool")
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2021-12-13 13:33:30 -07:00
..
configs kunit: Remove the unused all_tests.config 2021-06-23 17:49:41 -06:00
qemu_configs kunit: tool: add support for QEMU 2021-06-11 16:10:23 -06:00
test_data kunit: tool: improve compatibility of kunit_parser with KTAP specification 2021-10-19 14:22:02 -06:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
kunit_config.py kunit: tool: add support for QEMU 2021-06-11 16:10:23 -06:00
kunit_json.py kunit: tool: fix --json output for skipped tests 2021-12-13 13:33:30 -07:00
kunit_kernel.py kunit: tool: fix typecheck errors about loading qemu configs 2021-10-29 13:05:47 -06:00
kunit_parser.py kunit: tool: improve compatibility of kunit_parser with KTAP specification 2021-10-19 14:22:02 -06:00
kunit_tool_test.py kunit: tool: fix --json output for skipped tests 2021-12-13 13:33:30 -07:00
kunit.py kunit: tool: continue past invalid utf-8 output 2021-10-25 13:06:45 -06:00
qemu_config.py kunit: tool: add support for QEMU 2021-06-11 16:10:23 -06:00