1
0
Fork 0

tests/beakerlib: remove old API call.

Library API has been changed downstream and we need
to reflect those changes in upstream.
This commit is contained in:
Robin Hack 2025-05-07 05:36:45 -04:00
parent 9392599b76
commit 09650925b3

View file

@ -24,16 +24,18 @@ rlJournalStart
rlAssertRpm $PACKAGE
rlImport "tuned/basic"
PROFILE_DIR=$(tunedGetSystemProfilesBaseDir)
rlFileBackup "/var/log/tuned/tuned.log"
tunedDisableSystemdRateLimitingStart
rlServiceStart "tuned"
tunedProfileBackup
rlFileBackup "/var/log/tuned/tuned.log"
tunedDisableSystemdRateLimitingStart
USRPROFILEDIR="$(tunedGetUsrProfilesBaseDir)"
rlPhaseEnd
rlPhaseStartTest "Test of profile balanced"
rlRun "cat $PROFILE_DIR/balanced/tuned.conf | grep alpm="
rlRun "cat ${USRPROFILEDIR}/balanced/tuned.conf | grep alpm="
echo > /var/log/tuned/tuned.log
rlRun "tuned-adm profile balanced"
rlRun "tuned-adm active | grep balanced"
@ -42,7 +44,7 @@ rlJournalStart
rlPhaseEnd
rlPhaseStartTest "Test of profile powersave"
rlRun "cat $PROFILE_DIR/powersave/tuned.conf | grep alpm="
rlRun "cat ${USRPROFILEDIR}/powersave/tuned.conf | grep alpm="
echo > /var/log/tuned/tuned.log
rlRun "tuned-adm profile powersave"
rlRun "tuned-adm active | grep powersave"