@@ -49,42 +49,42 @@ def do_execute_xst(host: Host, modname: str, testname: str | None = None) -> Non
4949@pytest .mark .reboot # host_with_ring0_tests
5050@pytest .mark .usefixtures ("host_with_ring0_tests" )
5151class TestRing0Tests :
52- def test_privcmd_restrict (self , host : Host ):
52+ def test_privcmd_restrict (self , host : Host ) -> None :
5353 host .ssh ("/usr/bin/privcmd-restrict_test" )
5454
55- def test_xst_alloc_balloon (self , host : Host ):
55+ def test_xst_alloc_balloon (self , host : Host ) -> None :
5656 do_execute_xst (host , "alloc_balloon" )
5757
58- def test_xst_big_module (self , host : Host ):
58+ def test_xst_big_module (self , host : Host ) -> None :
5959 do_execute_xst (host , "big_module" )
6060
6161 @pytest .mark .skip ("may hang system with fifo evtchn" )
62- def test_xst_evtchn_latency (self , host : Host ):
62+ def test_xst_evtchn_latency (self , host : Host ) -> None :
6363 do_execute_xst (host , "evtchn_latency" , "evtchn_lat" )
6464
6565 @pytest .mark .skip ("only makes sense for 2l evtchn" )
66- def test_xst_evtchn_limit (self , host : Host ):
66+ def test_xst_evtchn_limit (self , host : Host ) -> None :
6767 do_execute_xst (host , "evtchn_limit" )
6868
69- def test_xst_evtchn_stress (self , host : Host ):
69+ def test_xst_evtchn_stress (self , host : Host ) -> None :
7070 do_execute_xst (host , "evtchn_stress" )
7171
7272 @pytest .mark .skip ("leaks event channels infinitely" )
73- def test_xst_evtchn_unbind (self , host : Host ):
73+ def test_xst_evtchn_unbind (self , host : Host ) -> None :
7474 do_execute_xst (host , "evtchn_unbind" )
7575
76- def test_xst_get_user_pages (self , host : Host ):
76+ def test_xst_get_user_pages (self , host : Host ) -> None :
7777 host .ssh ("modprobe xst_get_user_pages" )
7878 try :
7979 host .ssh ("/usr/bin/gup_test" )
8080 finally :
8181 host .ssh ("modprobe -r xst_get_user_pages" , check = False )
8282
83- def test_xst_grant_copy_perf (self , host : Host ):
83+ def test_xst_grant_copy_perf (self , host : Host ) -> None :
8484 do_execute_xst (host , "grant_copy_perf" , "gntcpy_perf" )
8585
8686 @pytest .mark .small_vm
87- def test_xst_ioemu_msi (self , host : Host , running_unix_vm : VM ):
87+ def test_xst_ioemu_msi (self , host : Host , running_unix_vm : VM ) -> None :
8888 # TODO: validate MSI reception in guest
8989 vm = running_unix_vm
9090 domid = vm .param_get ("dom-id" )
@@ -98,7 +98,7 @@ def test_xst_ioemu_msi(self, host: Host, running_unix_vm: VM):
9898 host .ssh ("modprobe -r xst_ioemu_msi" , check = False )
9999
100100 @pytest .mark .usefixtures ("host_at_least_8_3" )
101- def test_xst_livepatch (self , host_without_livepatch_loaded : Host ):
101+ def test_xst_livepatch (self , host_without_livepatch_loaded : Host ) -> None :
102102 """
103103 This test loads a `livepatch_testee` module, and triggers the test
104104 function `test_function_default` by writing to
@@ -130,7 +130,7 @@ def test_xst_livepatch(self, host_without_livepatch_loaded: Host):
130130 finally :
131131 host .ssh ("modprobe -r livepatch_testee" , check = False )
132132
133- def test_xst_memory_leak (self , host : Host ):
133+ def test_xst_memory_leak (self , host : Host ) -> None :
134134 if not host .file_exists ("/sys/kernel/debug/kmemleak" ):
135135 pytest .skip ("CONFIG_DEBUG_KMEMLEAK is not set" )
136136
@@ -148,15 +148,15 @@ def test_xst_memory_leak(self, host: Host):
148148 finally :
149149 host .ssh ("modprobe -r xst_memory_leak" , check = False )
150150
151- def test_xst_pte_set_clear_flags (self , host : Host ):
151+ def test_xst_pte_set_clear_flags (self , host : Host ) -> None :
152152 do_execute_xst (host , "pte_set_clear_flags" )
153153
154- def test_xst_ptwr_xchg (self , host : Host ):
154+ def test_xst_ptwr_xchg (self , host : Host ) -> None :
155155 do_execute_xst (host , "ptwr_xchg" )
156156
157- def test_xst_set_memory_uc (self , host : Host ):
157+ def test_xst_set_memory_uc (self , host : Host ) -> None :
158158 do_execute_xst (host , "set_memory_uc" )
159159
160160 @pytest .mark .skip ("crashes the host, disabled by default" )
161- def test_xst_soft_lockup (self , host : Host ):
161+ def test_xst_soft_lockup (self , host : Host ) -> None :
162162 do_execute_xst (host , "soft_lockup" )
0 commit comments