ci,marge_queue: enhance script interruption

Instead of printing an exception on the screen when the process is interrupted
from the keyboard, handle it and print a more friendly message.

Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37395>
This commit is contained in:
Sergi Blanch Torne 2025-09-15 15:34:22 +02:00 committed by Marge Bot
parent 915648f994
commit 02af2a199b

View file

@ -76,7 +76,11 @@ def main():
if not args.wait:
sys.exit(min(n_mrs, 127))
time.sleep(REFRESH_WAIT)
try:
time.sleep(REFRESH_WAIT)
except KeyboardInterrupt:
print("Sleep interrupted from keyboard, doing one last iteration before finish.")
args.wait = False
if __name__ == "__main__":