From ee67bd8e8b04d2a1fdf495169766576887b6d2c3 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 8 Oct 2021 11:54:22 -0300 Subject: gst-env: Ignore SIGINT when running on the CI server We get spurious sigint and this is just a small temporary workaround Part-of: --- gst-env.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gst-env.py') diff --git a/gst-env.py b/gst-env.py index 5223a13022..7b7d3ae7f7 100755 --- a/gst-env.py +++ b/gst-env.py @@ -582,6 +582,10 @@ if __name__ == "__main__": print('{}={}'.format(name, shlex.quote(value))) print('export {}'.format(name)) else: + if os.environ.get("CI_PROJECT_NAME"): + print("Ignoring SIGINT when running on the CI," + " as we get spurious sigint in there for some reason.") + signal.signal(signal.SIGINT, signal.SIG_IGN) exit(subprocess.call(args, close_fds=False, env=env)) except subprocess.CalledProcessError as e: -- cgit v1.2.1