Commit graph

6 commits

Author SHA1 Message Date
Jan Onderka
60efdf58a5 Disable unrelated tests to RHIVOS 2024-05-28 14:34:39 +02:00
Milos Malik
814a670ca5 convert metadata of all libselinux tests to TMT/FMF 2022-04-26 13:18:49 +00:00
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
Ondrej Mosnacek
596ec7fafe Make all relevancy expressions use comparison operators
Rather than enumerating RHEL versions, use comparison against
"known-good" version to make the expressions easier to read and
understand.

Also convert users of '~<' to '<', as '~<' compares only minor versions
within the same major.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2020-12-15 12:38:32 +01:00
Milos Malik
15f6d6c612 update test relevancy based on packages availability
Relevancy changes are made based on recommendations from:
  tmt test lint --fix

Some packages are available for Fedoras only and are not available
for RHELs at all.
Some packages are available for latest RHEL major versions only.
2020-12-15 11:53:28 +01: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