@@ -61,7 +61,7 @@ def setUp(self: qubes.tests.SystemTestCase):
6161 )
6262 )
6363 start_tasks = [self .vm1 .start ()]
64- if self ._testMethodName . startswith ( "vm" ) :
64+ if "_vm" in self ._testMethodName :
6565 start_tasks .append (self .vm2 .start ())
6666 self .loop .run_until_complete (asyncio .gather (* start_tasks ))
6767
@@ -78,7 +78,7 @@ def run_test(self, name):
7878 dvm = self .dvm .name
7979 vm1 = self .vm1 .name
8080 vm2 = ""
81- if name . startswith ( " vm") :
81+ if "- vm" in name :
8282 vm2 = self .vm2 .name
8383 cmd = [
8484 "/usr/lib/qubes/tests/dispvm_perf.py" ,
@@ -92,141 +92,141 @@ def run_test(self, name):
9292 if p .returncode :
9393 self .fail (f"'{ ' ' .join (cmd )} ' failed: { p .returncode } " )
9494
95- def test_000_dispvm (self ):
95+ def test_000_vm_dispvm (self ):
9696 """Latency of vm-dispvm calls"""
97- self .run_test ("dispvm" )
97+ self .run_test ("vm- dispvm" )
9898
99- def test_001_dispvm_gui (self ):
99+ def test_001_vm_dispvm_gui (self ):
100100 """Latency of vm-dispvm GUI calls"""
101- self .run_test ("dispvm-gui" )
101+ self .run_test ("vm- dispvm-gui" )
102102
103- def test_002_dispvm_concurrent (self ):
103+ def test_002_vm_dispvm_concurrent (self ):
104104 """Latency of vm-dispvm concurrent calls"""
105- self .run_test ("dispvm-concurrent" )
105+ self .run_test ("vm- dispvm-concurrent" )
106106
107- def test_003_dispvm_gui_concurrent (self ):
107+ def test_003_vm_dispvm_gui_concurrent (self ):
108108 """Latency of vm-dispvm concurrent GUI calls"""
109- self .run_test ("dispvm-gui-concurrent" )
109+ self .run_test ("vm- dispvm-gui-concurrent" )
110110
111- def test_006_dispvm_from_dom0 (self ):
111+ def test_006_dom0_dispvm (self ):
112112 """Latency of dom0-dispvm calls"""
113- self .run_test ("dispvm- dom0" )
113+ self .run_test ("dom0-dispvm " )
114114
115- def test_007_dispvm_from_dom0_gui (self ):
115+ def test_007_dom0_dispvm_gui (self ):
116116 """Latency of dom0-dispvm GUI calls"""
117- self .run_test ("dispvm- dom0-gui" )
117+ self .run_test ("dom0-dispvm -gui" )
118118
119- def test_008_dispvm_from_dom0_concurrent (self ):
119+ def test_008_dom0_dispvm_concurrent (self ):
120120 """Latency of dom0-dispvm concurrent calls"""
121- self .run_test ("dispvm- dom0-concurrent" )
121+ self .run_test ("dom0-dispvm -concurrent" )
122122
123- def test_009_dispvm_from_dom0_gui_concurrent (self ):
123+ def test_009_dom0_dispvm_gui_concurrent (self ):
124124 """Latency of dom0-dispvm concurrent GUI calls"""
125- self .run_test ("dispvm- dom0-gui-concurrent" )
125+ self .run_test ("dom0-dispvm -gui-concurrent" )
126126
127- def test_020_dispvm_preload (self ):
127+ def test_020_vm_dispvm_preload (self ):
128128 """Latency of vm-dispvm (preload) calls"""
129- self .run_test ("dispvm-preload" )
129+ self .run_test ("vm- dispvm-preload" )
130130
131- def test_021_dispvm_preload_gui (self ):
131+ def test_021_vm_dispvm_preload_gui (self ):
132132 """Latency of vm-dispvm (preload) GUI calls"""
133- self .run_test ("dispvm-preload-gui" )
133+ self .run_test ("vm- dispvm-preload-gui" )
134134
135- def test_022_dispvm_preload_concurrent (self ):
135+ def test_022_vm_dispvm_preload_concurrent (self ):
136136 """Latency of vm-dispvm (preload) concurrent calls"""
137- self .run_test ("dispvm-preload-concurrent" )
137+ self .run_test ("vm- dispvm-preload-concurrent" )
138138
139- def test_023_dispvm_preload_gui_concurrent (self ):
139+ def test_023_vm_dispvm_preload_gui_concurrent (self ):
140140 """Latency of vm-dispvm (preload) concurrent GUI calls"""
141- self .run_test ("dispvm-preload-gui-concurrent" )
141+ self .run_test ("vm- dispvm-preload-gui-concurrent" )
142142
143- def test_026_dispvm_from_dom0_preload (self ):
143+ def test_026_dom0_dispvm_preload (self ):
144144 """Latency of dom0-dispvm (preload) calls"""
145- self .run_test ("dispvm-preload-dom0 " )
145+ self .run_test ("dom0- dispvm-preload" )
146146
147- def test_027_dispvm_from_dom0_preload_gui (self ):
147+ def test_027_dom0_dispvm_preload_gui (self ):
148148 """Latency of dom0-dispvm (preload) GUI calls"""
149- self .run_test ("dispvm-preload-dom0 -gui" )
149+ self .run_test ("dom0- dispvm-preload-gui" )
150150
151- def test_028_dispvm_from_dom0_preload_concurrent (self ):
151+ def test_028_dom0_dispvm_preload_concurrent (self ):
152152 """Latency of dom0-dispvm (preload) concurrent calls"""
153- self .run_test ("dispvm-preload-dom0 -concurrent" )
153+ self .run_test ("dom0- dispvm-preload-concurrent" )
154154
155- def test_029_dispvm_from_dom0_preload_gui_concurrent (self ):
155+ def test_029_dom0_dispvm_preload_gui_concurrent (self ):
156156 """Latency of dom0-dispvm (preload) concurrent GUI calls"""
157- self .run_test ("dispvm-preload-dom0 -gui-concurrent" )
157+ self .run_test ("dom0- dispvm-preload-gui-concurrent" )
158158
159- def test_400_dispvm_api (self ):
159+ def test_400_dom0_dispvm_api (self ):
160160 """Latency of dom0-dispvm API calls"""
161- self .run_test ("dispvm-api" )
161+ self .run_test ("dom0- dispvm-api" )
162162
163- def test_401_dispvm_gui_api (self ):
163+ def test_401_dom0_dispvm_gui_api (self ):
164164 """Latency of dom0-dispvm GUI API calls"""
165- self .run_test ("dispvm-gui-api" )
165+ self .run_test ("dom0- dispvm-gui-api" )
166166
167- def test_402_dispvm_concurrent_api (self ):
167+ def test_402_dom0_dispvm_concurrent_api (self ):
168168 """Latency of dom0-dispvm concurrent API calls"""
169- self .run_test ("dispvm-concurrent-api" )
169+ self .run_test ("dom0- dispvm-concurrent-api" )
170170
171- def test_403_dispvm_gui_concurrent_api (self ):
171+ def test_403_dom0_dispvm_gui_concurrent_api (self ):
172172 """Latency of dom0-dispvm concurrent GUI API calls"""
173- self .run_test ("dispvm-gui-concurrent-api" )
173+ self .run_test ("dom0- dispvm-gui-concurrent-api" )
174174
175- def test_404_dispvm_preload_more_api (self ):
175+ def test_404_dom0_dispvm_preload_more_api (self ):
176176 """Latency of dom0-dispvm (preload more) API calls"""
177- self .run_test ("dispvm-preload-more-api" )
177+ self .run_test ("dom0- dispvm-preload-more-api" )
178178
179- def test_404_dispvm_preload_less_api (self ):
179+ def test_404_dom0_dispvm_preload_less_api (self ):
180180 """Latency of dom0-dispvm (preload less) API calls"""
181- self .run_test ("dispvm-preload-less-api" )
181+ self .run_test ("dom0- dispvm-preload-less-api" )
182182
183- def test_404_dispvm_preload_api (self ):
183+ def test_404_dom0_dispvm_preload_api (self ):
184184 """Latency of dom0-dispvm (preload) API calls"""
185- self .run_test ("dispvm-preload-api" )
185+ self .run_test ("dom0- dispvm-preload-api" )
186186
187- def test_405_dispvm_preload_gui_api (self ):
187+ def test_405_dom0_dispvm_preload_gui_api (self ):
188188 """Latency of dom0-dispvm (preload) GUI API calls"""
189- self .run_test ("dispvm-preload-gui-api" )
189+ self .run_test ("dom0- dispvm-preload-gui-api" )
190190
191- def test_406_dispvm_preload_concurrent_api (self ):
191+ def test_406_dom0_dispvm_preload_concurrent_api (self ):
192192 """Latency of dom0-dispvm (preload) concurrent GUI API calls"""
193- self .run_test ("dispvm-preload-concurrent-api" )
193+ self .run_test ("dom0- dispvm-preload-concurrent-api" )
194194
195- def test_407_dispvm_preload_gui_concurrent_api (self ):
195+ def test_407_dom0_dispvm_preload_gui_concurrent_api (self ):
196196 """Latency of dom0-dispvm (preload) concurrent GUI API calls"""
197- self .run_test ("dispvm-preload-gui-concurrent-api" )
197+ self .run_test ("dom0- dispvm-preload-gui-concurrent-api" )
198198
199- def test_900_vm (self ):
199+ def test_900_vm_vm (self ):
200200 """Latency of vm-vm calls"""
201- self .run_test ("vm" )
201+ self .run_test ("vm-vm " )
202202
203- def test_901_vm_gui (self ):
203+ def test_901_vm_vm_gui (self ):
204204 """Latency of vm-vm GUI calls"""
205- self .run_test ("vm-gui" )
205+ self .run_test ("vm-vm- gui" )
206206
207- def test_902_vm_concurrent (self ):
207+ def test_902_vm_vm_concurrent (self ):
208208 """Latency of vm-vm concurrent calls"""
209- self .run_test ("vm-concurrent" )
209+ self .run_test ("vm-vm- concurrent" )
210210
211- def test_903_vm_gui_concurrent (self ):
211+ def test_903_vm_vm_gui_concurrent (self ):
212212 """Latency of vm-vm concurrent GUI calls"""
213- self .run_test ("vm-gui-concurrent" )
213+ self .run_test ("vm-vm- gui-concurrent" )
214214
215- def test_904_vm_api (self ):
215+ def test_904_dom0_vm_api (self ):
216216 """Latency of dom0-vm API calls"""
217- self .run_test ("vm-api" )
217+ self .run_test ("dom0- vm-api" )
218218
219- def test_905_vm_gui_api (self ):
219+ def test_905_dom0_vm_gui_api (self ):
220220 """Latency of dom0-vm GUI API calls"""
221- self .run_test ("vm-gui-api" )
221+ self .run_test ("dom0- vm-gui-api" )
222222
223- def test_906_vm_concurrent_api (self ):
223+ def test_906_dom0_vm_concurrent_api (self ):
224224 """Latency of dom0-vm concurrent API calls"""
225- self .run_test ("vm-concurrent-api" )
225+ self .run_test ("dom0- vm-concurrent-api" )
226226
227- def test_907_vm_gui_concurrent_api (self ):
227+ def test_907_dom0_vm_gui_concurrent_api (self ):
228228 """Latency of dom0-vm concurrent GUI API calls"""
229- self .run_test ("vm-gui-concurrent-api" )
229+ self .run_test ("dom0- vm-gui-concurrent-api" )
230230
231231
232232def create_testcases_for_templates ():
0 commit comments