kunit_skip(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kunit_skip(9) β€” Kernel API Manual

okay bestie, welcome to the kunit_skip page ✨ this is from the Kernel API Manual, and it's literally the "nvm, not running this one" button for your tests 🫢


✨ NAME ✨

kunit_skip β€” Marks _@test_ as skipped πŸ’€


✨ SYNOPSIS ✨

kunit_skip (test , fmt , ... );

no cap, that's the whole signature, copy it exactly πŸ‘‘


✨ ARGUMENTS ✨

  • test β€” the test context object πŸŽ€ like, the little test's whole identity, hand it over
  • fmt β€” a printk style format string πŸ–¨οΈ yes, the classic printf-flavoured one
  • ... β€” variable arguments 🌈 the extra lil values that feed into fmt

✨ DESCRIPTION ✨

So basically: it skips the test. Periodt. πŸ’…

The fmt gets given output as the test status comment β€” which is typically the reason the test was skipped, iykyk. So like, be a good bestie and actually put the reason in there instead of leaving everyone guessing πŸ™ˆ

Heads up: test execution is halted after kunit_skip is called πŸ›‘ like, it does not come back, the test is done-done, main character exits stage left ✨

✨ SEE ALSO ✨

the whole friend group 🫢 β€” Kernel file ./include/kunit/test.h plus:


and that's the whole page bestie, go skip some tests responsibly πŸ’–

shoutout to the source ./include/kunit, dated October 2026 β€” that's the lore, that's the origin story, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from