summaryrefslogtreecommitdiff
path: root/gst-env.py
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2021-10-08 11:54:22 -0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-10-12 16:59:16 +0000
commitee67bd8e8b04d2a1fdf495169766576887b6d2c3 (patch)
tree67ef284da15352b4ed0130b16884e154603c1b9f /gst-env.py
parentd8e8d98ff9e303e2793fa634ad5e9ff0ed7be9bb (diff)
downloadgstreamer-ee67bd8e8b04d2a1fdf495169766576887b6d2c3.tar.gz
gst-env: Ignore SIGINT when running on the CI server
We get spurious sigint and this is just a small temporary workaround Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1113>
Diffstat (limited to 'gst-env.py')
-rwxr-xr-xgst-env.py4
1 files changed, 4 insertions, 0 deletions
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: