Skip to content

Commit

Permalink
Update platform check in anaconda-modules test
Browse files Browse the repository at this point in the history
  • Loading branch information
rvykydal committed Mar 22, 2024
1 parent 208eb76 commit ff85495
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion anaconda-modules.ks.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@

%post --nochroot

@KSINCLUDE@ scripts-lib.sh

# Get the activated Anaconda DBus modules.
cat /tmp/syslog | grep "Activating service name" | \
grep "org.fedoraproject.Anaconda.Modules" | cut -d"'" -f2 \
| sort > /tmp/generated.out

# Generate the expected output.
if [[ "@KSTEST_OS_NAME@" == "rhel" ]]; then
if is_rhel8 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ || \
is_rhel9 @KSTEST_OS_NAME@ @KSTEST_OS_VERSION@ ; then
cat > /tmp/expected.out << EOF
org.fedoraproject.Anaconda.Modules.Localization
org.fedoraproject.Anaconda.Modules.Network
Expand Down

0 comments on commit ff85495

Please sign in to comment.