Commit a5e7163
committed
ktest.pl: Add new PATCHCHECK_SKIP option to skip testing individual commits
When testing a series of commits that also includes changes to the Linux
tools directory, it is useless to test the changes in tools as they may
not affect the kernel itself. Doing tests on the kernel for changes that
do not affect the kernel is a waste of time.
Add a PATCHCHECK_SKIP that takes a series of shas that will be skipped
while doing the individual commit tests.
For example, the runtime verification may have a series of commits like:
$ git log --abbrev-commit --pretty=oneline fac5493~1..HEAD
3d3800b rv: Remove rv_reactor's reference counter
3d3c376 rv: Merge struct rv_reactor_def into struct rv_reactor
24cbfe1 rv: Merge struct rv_monitor_def into struct rv_monitor
b0c08dd rv: Remove unused field in struct rv_monitor_def
58d5f0d (debiantesting-x86-64/trace/rv/core) rv: Return init error when registering monitors
560473f verification/rvgen: Organise Kconfig entries for nested monitors
9efcf59 tools/dot2c: Fix generated files going over 100 column limit
1160cca tools/rv: Stop gracefully also on SIGTERM
f60227f tools/rv: Do not skip idle in trace
f3735df verification/rvgen: Do not generate unused variables
6fb37c2 verification/rvgen: Generate each variable definition only once
8cfcf9b verification/rvgen: Support the 'next' operator
fac5493 rv: Allow to configure the number of per-task monitor
Where the first commit touches the kernel followed by a series of commits
that do not, and ends with commits that do. Instead of having to add
multiple patchcheck tests to handle the gaps, just include the commits
that should not be tested:
$ git log --abbrev-commit --pretty=oneline fac5493~1..HEAD |
grep -e verification -e tools/ | cut -d' ' -f1 |
while read a ; do echo -n "$a "; done
560473f 9efcf59 1160cca f60227f f3735df 6fb37c2 8cfcf9b
Then set PATCHCHECK_SKIP to that, and those commits will be skipped.
PATCHCHECK_SKIP = 560473f 9efcf59 1160cca f60227f f3735df 6fb37c2 8cfcf9b
Cc: John 'Warthog9' Hawley <warthog9@kernel.org>
Cc: Dhaval Giani <dhaval.giani@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/20250725112153.1dd06b84@gandalf.local.home
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>1 parent 23a2d4c commit a5e7163
2 files changed
+35
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| |||
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
| 386 | + | |
385 | 387 | | |
386 | 388 | | |
387 | 389 | | |
| |||
3537 | 3539 | | |
3538 | 3540 | | |
3539 | 3541 | | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
3540 | 3555 | | |
3541 | 3556 | | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
3542 | 3560 | | |
3543 | 3561 | | |
3544 | 3562 | | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
| 3571 | + | |
| 3572 | + | |
3545 | 3573 | | |
3546 | 3574 | | |
3547 | 3575 | | |
| |||
3556 | 3584 | | |
3557 | 3585 | | |
3558 | 3586 | | |
| 3587 | + | |
| 3588 | + | |
| 3589 | + | |
| 3590 | + | |
| 3591 | + | |
3559 | 3592 | | |
3560 | 3593 | | |
3561 | 3594 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1017 | 1017 | | |
1018 | 1018 | | |
1019 | 1019 | | |
| 1020 | + | |
| 1021 | + | |
1020 | 1022 | | |
1021 | 1023 | | |
1022 | 1024 | | |
| |||
0 commit comments