@@ -83,11 +83,11 @@ def test_010_run_xterm(self):
8383 self .assertEqual (self .testvm1 .get_power_state (), "Running" )
8484
8585 self .loop .run_until_complete (self .wait_for_session (self .testvm1 ))
86- p = self .loop .run_until_complete (self .testvm1 .run ("xterm" ))
86+ title = "user@{}" .format (self .testvm1 .name )
87+ p = self .loop .run_until_complete (
88+ self .testvm1 .run (f"xterm -title { title } " )
89+ )
8790 try :
88- title = "user@{}" .format (self .testvm1 .name )
89- if self .template .count ("whonix" ):
90- title = "user@host"
9191 self .wait_for_window (title )
9292
9393 self .loop .run_until_complete (asyncio .sleep (0.5 ))
@@ -123,6 +123,8 @@ def test_011_run_gnome_terminal(self):
123123 self .skipTest ("Xfce template doesn't have 'gnome-terminal'" )
124124 if "archlinux" in self .template :
125125 self .skipTest ("Arch template doesn't have 'gnome-terminal'" )
126+ if "guix" in self .template :
127+ self .skipTest ("Guix template doesn't have 'gnome-terminal'" )
126128 self .loop .run_until_complete (self .testvm1 .start ())
127129 self .assertEqual (self .testvm1 .get_power_state (), "Running" )
128130 self .loop .run_until_complete (self .wait_for_session (self .testvm1 ))
@@ -373,9 +375,11 @@ def test_115_qrexec_filecopy_no_agent(self):
373375
374376 with self .qrexec_policy ("qubes.Filecopy" , self .testvm1 , self .testvm2 ):
375377 try :
378+ service_ctl = "herd" if "guix" in self .template else "systemctl"
376379 self .loop .run_until_complete (
377380 self .testvm2 .run_for_stdio (
378- "systemctl stop qubes-qrexec-agent.service" , user = "root"
381+ f"{ service_ctl } stop qubes-qrexec-agent.service" ,
382+ user = "root" ,
379383 )
380384 )
381385 except subprocess .CalledProcessError :
0 commit comments