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

Lukáš Doktor ldoktor at redhat.com
Tue May 14 07:08:32 UTC 2019


Dne 14. 05. 19 v 4:01 Cleber Rosa napsal(a):
> 
> 
> ----- 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.
> 

Hello guys,

we talked about this with Radek, he is aware of the SIGCONT, but it is not convenient (as you need to resume aexpects, netcats and such as well, otherwise it will hang after some writes). Basically the current behavior suits some, others might prefer to stop only the main test. We decided to SIGSTOP everything because it sounded as a useful feature, I even had plans to add interactive options (to resume bg threads, to attach debugger, to list results dir, ...) but it was never a priority.

The reason I wanted Radek to write to avocado-devel was to find out whether anyone actually benefits from the SIGSTOP, because I think we could simply switch the behavior. But if there are some users, we might consider adding cfg option to adjust the behavior.

As for me I used to use it as well, even had it on my todo-list to fix it as it was suppose to be frozen. Now when it works I dislike it as well... Since it didn't work for a long time I'd be slightly inclined towards changing the behavior back with or without the cfg option.

Regards,
Lukáš

> Cheers,
> - Cleber.
> 
>> regards,
>>
>> Radek Duda
>> SPICE-QE
>>
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/avocado-devel/attachments/20190514/e652be9f/attachment.sig>


More information about the Avocado-devel mailing list