psss / tests / selinux

Forked from tests/selinux 6 years ago
Clone

f248ce1 python-bindings: Fixes for Fedora CI

Authored and Committed by plautrba 2 years ago
    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