This series converts five Perl test helpers in tools/ to Python 3, continuing the Perl-to-Python conversion effort for the kernel's auxiliary scripts.
Each conversion is a faithful 1:1 port: same CLI, same output, same exit codes. All use only the Python standard library. The five scripts are: - prefix.pl -> prefix.py - check_all_patterns_found.pl -> check_all_patterns_found.py - check_no_patterns_found.pl -> check_no_patterns_found.py - check_all_lines_matched.pl -> check_all_lines_matched.py - check_errors_whitelisted.pl -> check_errors_whitelisted.py All five were verified byte-for-byte identical to their Perl counterparts on synthetic inputs. These files are used by perf test shell scripts to validate test output; they have no dependency on the perf binary or its Python bindings, so they can be converted independently. Breno Rodrigues Alves (5): perf/kselftest: convert prefix.pl to Python perf/tests: convert check_all_patterns_found.pl to Python perf/tests: convert check_no_patterns_found.pl to Python perf/tests: convert check_all_lines_matched.pl to Python perf/tests: convert check_errors_whitelisted.pl to Python Breno Rodrigues Alves (5): perf/kselftest: convert prefix.pl to Python perf/tests: convert check_all_patterns_found.pl to Python perf/tests: convert check_no_patterns_found.pl to Python perf/tests: convert check_all_lines_matched.pl to Python perf/tests: convert check_errors_whitelisted.pl to Python .../shell/common/check_all_lines_matched.py | 45 +++++++++++++++ .../shell/common/check_all_patterns_found.py | 35 ++++++++++++ .../shell/common/check_errors_whitelisted.py | 55 +++++++++++++++++++ .../shell/common/check_no_patterns_found.py | 35 ++++++++++++ tools/testing/selftests/kselftest/prefix.py | 24 ++++++++ 5 files changed, 194 insertions(+) create mode 100755 tools/perf/tests/shell/common/check_all_lines_matched.py create mode 100755 tools/perf/tests/shell/common/check_all_patterns_found.py create mode 100755 tools/perf/tests/shell/common/check_errors_whitelisted.py create mode 100755 tools/perf/tests/shell/common/check_no_patterns_found.py create mode 100755 tools/testing/selftests/kselftest/prefix.py -- 2.43.0

