[Avocado-devel] add possibility to not freeze VM when test execution is stopped (ctrl-z)

Cleber Rosa crosa at redhat.com
Tue May 14 02:01:41 UTC 2019



----- Original Message -----
> From: "Radek Duda" <rduda at redhat.com>
> To: "avocado-devel" <avocado-devel at redhat.com>
> Sent: Monday, May 13, 2019 5:33:50 AM
> Subject: [Avocado-devel] add possibility to not freeze VM when test	execution is stopped (ctrl-z)
> 
> Hi,
> some time ago I was used to stop test execution (ctrl-z) and then manually
> interact with GUI of VM. That is impossible now since not only test
> execution is stopped, but VM is stopped too - it is frozen and does not
> interact to keyboard/mouse input through remote-viewer any more.
> I consulted this with Lukáš, who described this as a proper behavior and
> possibility to interact with VM's GUI as a bug, which has been fixed in the
> past. I would like to have option to stop test execution (ctrl-z), but not
> to freeze VM. Do you guys think it is possible?
> 

Hi Radek,

I think the tricky part is determining what is "the VM" to Avocado, and not passing SIGSTOP
to that process.  Have you tried, instead, to send a SIGCONT to that process only?  Depending
on how your test system looks like (and it's running) I'd think something like:

 $ avocado run ...
 <CTRL+Z>

 $ killal -CONT qemu

Should do the trick.  Let me know how if this works and if you find it acceptable.

Cheers,
- Cleber.

> regards,
> 
> Radek Duda
> SPICE-QE
> 




More information about the Avocado-devel mailing list