Skip to content

Commit 989a520

Browse files
committed
qemu: Add kasan_kunit callback
1 parent 1a1c688 commit 989a520

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/qemu_callbacks.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import logging
22
from utils import setup_timeout
3+
from pexpect_utils import ignore_warnings
34

45
########################################
56
# Callbacks that can run once the VM has booted
@@ -71,6 +72,12 @@ def run_selftests_nocheck(qconf, p, arg=None):
7172
return run_selftests(qconf, p, arg, check=False)
7273

7374

75+
# KASAN Kunit test, needs modules
76+
def kasan_kunit(qconf, p):
77+
ignore_warnings(p, lambda p: p.cmd('modprobe kasan_test'))
78+
return True
79+
80+
7481
# Invoke lkdtm via sysfs
7582
# eg. --callback "lkdtm(BUG WARNING)"
7683
def lkdtm(qconf, p, arg):

0 commit comments

Comments
 (0)