test/udev-test: gracefully exit when imports fail

In Fedora rawhide various perl modules are now available as separate
packages that are not pulled in by dependencies. If we don't have some
package, skip the tests.

This ugly code is apparently the way to do conditional imports:
https://www.cs.ait.ac.th/~on/O/oreilly/perl/cookbook/ch12_03.htm.

(cherry picked from commit d40763838278246e2073d15ca927ee700e583afc)

Related: #1642728
1 file changed
tree: dbcdd441d6df901ea0df286fcb141acd9f8d1b35
  1. .dir-locals.el
  2. .editorconfig
  3. .gitattributes
  4. .github/
  5. .gitignore
  6. .lgtm.yml
  7. .lgtm/cpp-queries/
  8. .mailmap
  9. .mkosi/
  10. .vimrc
  11. .ycm_extra_conf.py
  12. LICENSE.GPL2
  13. LICENSE.LGPL2.1
  14. Makefile
  15. NEWS
  16. README
  17. README.md
  18. TODO
  19. catalog/
  20. coccinelle/
  21. configure
  22. doc/
  23. factory/etc/
  24. hwdb/
  25. man/
  26. meson.build
  27. meson_options.txt
  28. mkosi.build
  29. modprobe.d/
  30. network/
  31. po/
  32. presets/
  33. rules/
  34. shell-completion/
  35. src/
  36. sysctl.d/
  37. sysusers.d/
  38. test/
  39. tmpfiles.d/
  40. tools/
  41. travis-ci/
  42. units/
  43. xorg/
  44. zanata.xml
README.md

systemd - System and Service Manager

Build Status
Coverity Scan Status
CII Best Practices
Build Status

Details

General information about systemd can be found in the systemd Wiki.

Information about build requirements are provided in the README file.

Consult our NEWS file for information about what's new in the most recent systemd versions.

Please see the HACKING file for information how to hack on systemd and test your modifications.

Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.

When preparing patches for systemd, please follow our Coding Style Guidelines.

If you are looking for support, please contact our mailing list or join our IRC channel.

Stable branches with backported patches are available in the stable repo.