[Piglit] ctrl-c to stop piglit run

Ilia Mirkin imirkin at alum.mit.edu
Wed Jul 29 00:40:55 PDT 2015


Use ctrl-\ -- ctrl-c only kills a currently running test, not the whole run.
On Jul 29, 2015 2:19 AM, "Tapani Pälli" <tapani.palli at intel.com> wrote:

> Hello;
>
> I would like Piglit run to stop when hitting ctrl-c, this is because of
> sometimes launching it with wrong parameters, I'm lazy and don't like to
> use kill (like with yum and some others) when I want it to stop.
>
> I tried to implement this via setting signal handler to catch it but this
> does not seem to work. I've tried this in run.py (in run) as well as
> profile.py (in TestProfile class) and I'm getting a feeling that this
> approach does not work because of using a thread pool (multiprocessing).
> What would be the correct way to implement this?
>
> // Tapani
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20150729/f98faba5/attachment.html>


More information about the Piglit mailing list