forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'linux-kselftest-kunit-fixes-5.14-rc2' of git://git.kernel.…
…org/pub/scm/linux/kernel/git/shuah/linux-kselftest Pull kunit fixes from Shuah Khan: "Fixes to kunit tool and documentation: - fix asserts on older python versions - fixes to misleading error messages when TAP header format is incorrect or when file is missing - documentation fix: drop obsolete information about uml_abort coverage - remove unnecessary annotations" * tag 'linux-kselftest-kunit-fixes-5.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: kunit: tool: Assert the version requirement kunit: tool: remove unnecessary "annotations" import Documentation: kunit: drop obsolete note about uml_abort for coverage kunit: tool: Fix error messages for cases of no tests and wrong TAP header
- Loading branch information
Showing
7 changed files
with
24 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,19 +86,7 @@ Generating code coverage reports under UML | |
.. note:: | ||
TODO([email protected]): There are various issues with UML and | ||
versions of gcc 7 and up. You're likely to run into missing ``.gcda`` | ||
files or compile errors. We know one `faulty GCC commit | ||
<https://github.com/gcc-mirror/gcc/commit/8c9434c2f9358b8b8bad2c1990edf10a21645f9d>`_ | ||
but not how we'd go about getting this fixed. The compile errors still | ||
need some investigation. | ||
|
||
.. note:: | ||
TODO([email protected]): for recent versions of Linux | ||
(5.10-5.12, maybe earlier), there's a bug with gcov counters not being | ||
flushed in UML. This translates to very low (<1%) reported coverage. This is | ||
related to the above issue and can be worked around by replacing the | ||
one call to ``uml_abort()`` (it's in ``os_dump_core()``) with a plain | ||
``exit()``. | ||
|
||
files or compile errors. | ||
|
||
This is different from the "normal" way of getting coverage information that is | ||
documented in Documentation/dev-tools/gcov.rst. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,13 @@ | |
# Author: Felix Guo <[email protected]> | ||
# Author: Brendan Higgins <[email protected]> | ||
|
||
from __future__ import annotations | ||
import importlib.util | ||
import logging | ||
import subprocess | ||
import os | ||
import shutil | ||
import signal | ||
from typing import Iterator | ||
from typing import Optional | ||
from typing import Iterator, Optional, Tuple | ||
|
||
from contextlib import ExitStack | ||
|
||
|
@@ -208,7 +206,7 @@ def get_source_tree_ops(arch: str, cross_compile: Optional[str]) -> LinuxSourceT | |
raise ConfigError(arch + ' is not a valid arch') | ||
|
||
def get_source_tree_ops_from_qemu_config(config_path: str, | ||
cross_compile: Optional[str]) -> tuple[ | ||
cross_compile: Optional[str]) -> Tuple[ | ||
str, LinuxSourceTreeOperations]: | ||
# The module name/path has very little to do with where the actual file | ||
# exists (I learned this through experimentation and could not find it | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
tools/testing/kunit/test_data/test_is_test_passed-no_tests_run_with_header.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TAP version 14 | ||
1..0 |