Commit graph

2 commits

Author SHA1 Message Date
Petr Lautrbach
f248ce123e python-bindings: Fixes for Fedora CI
- fixed indentation

- the test requires python3-pip
Fixes:
    Running 'PipVersion=$(pip3 show selinux | grep Version)'
    /usr/share/beakerlib/testing.sh: line 891: pip3: command not found

- import sys
Fixes:
    Running 'python3 -c 'import selinux; rc = selinux.is_selinux_enabled(); sys.exit(rc)''
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    NameError: name 'sys' is not defined
2021-07-29 11:25:51 +02:00
Petr Lautrbach
2e7483099e libselinux/python-bindings: Basic selinux python module checks
- compare rpm and python metadata version
- import selinux module and try selinux.is_selinux_enabled()
2019-06-25 15:11:17 +02:00