forked from RHSecurityCompliance/contest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.fmf
More file actions
46 lines (42 loc) · 1.39 KB
/
Copy pathmain.fmf
File metadata and controls
46 lines (42 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
require:
- type: file
pattern: /lib
- type: file
pattern: /conf
- scap-security-guide
# shared by all tests
recommend:
- python3
- python3-requests
- python3-pyyaml
- python3-dnf
# - preparing/patching downloaded SRPM
- rpm-build
component:
- scap-security-guide
environment:
# use on-disk /var/tmp for all temporary directories, saving RAM by avoiding
# the tmpfs on /tmp and giving tests more space to operate
TMPDIR: /var/tmp
CONTEST_PYTHON: python3
# needed for fmf filtering because some tests use tag+: without any parent
# defining tag: without the +
tag: []
# RHEL and python3 versions (https://access.redhat.com/solutions/6879401):
# - RHEL-10 defaults to python 3.12, there is only python3 RPM package
# - RHEL-9 defaults to python 3.9, python3.11 RPM is available since RHEL-9.2
# - RHEL-8 defaults to python 3.6, python3.11 RPM is available since RHEL-8.8
# Effectively, we are limited by RHEL-9.0 where only python 3.9 is available
# so contest can currently only use python features up to version 3.9.
adjust:
- when: distro == rhel-8 or distro == centos-stream-8 or distro == rhel-9 or distro == centos-stream-9
environment+:
CONTEST_PYTHON: python3.11
recommend+:
- python3.11
- python3.11-requests
- python3.11-pyyaml
- python3.11-urllib3
- when: distro ~= rhel-9.0
environment+:
CONTEST_PYTHON: python3