mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-03 07:21:45 -09:00
In Glib >= 2.88, GLib.unix_signal_add has been moved to a separate platform-specific library. This break backward compatibility from GLib-2.0. A workaround has been applied to pygobject >= 3.55.374e4e0f40aThis issue currently break TestFirewalldSysVInit and TestFirewalldSystemd runtime tests since the bump to glib 2.88.3 [1]: https://gitlab.com/buildroot.org/buildroot/-/jobs/16060152329 (TestFirewalldSysVInit) https://gitlab.com/buildroot.org/buildroot/-/jobs/16060152332 (TestFirewalldSystemd) Break the test TestPythonPy3Gobject now in order to reproduce the same issue than for Firewalld test. [1]e313a2d259Signed-off-by: Romain Naour <romain.naour@smile.fr> Signed-off-by: Julien Olivain <ju.o@free.fr>
21 lines
662 B
Python
21 lines
662 B
Python
#!/usr/bin/env python3
|
|
"""A simple test that uses python-gobject to find the path of sh."""
|
|
from gi.repository import GLib
|
|
|
|
|
|
def main():
|
|
# In Glib >= 2.88, GLib.unix_signal_add has been moved to a
|
|
# separate platform-specific library. This break backward
|
|
# compatibility from GLib-2.0.
|
|
# A workaround has been applied to pygobject >= 3.55.3
|
|
# https://gitlab.gnome.org/GNOME/pygobject/-/commit/74e4e0f40a66436a55c72d4a6e6058c1f91a7310
|
|
unix_signal_add = GLib.unix_signal_add_full # noqa
|
|
sh_path = GLib.find_program_in_path('sh')
|
|
if sh_path == "/bin/sh":
|
|
return True
|
|
return False
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|