Skip to content

Commit

Permalink
test: FIX: add timeout when tuned starts.
Browse files Browse the repository at this point in the history
We give tuned 5 seconds to start.
Hard kill tuned after 10 seconds.
  • Loading branch information
RHEmployee committed Aug 24, 2023
1 parent f4c976f commit 3108e8c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ rlJournalStart
rlRun "mv /etc/tuned/tuned-main.conf.new /etc/tuned/tuned-main.conf"
rlRun "ulimit -H -n 1048576"
rlRun "ulimit -S -n 1048576"
rlRun "tuned --debug 2>&1 | tee TEST_OUT"
rlAssertNotGrep "tuned.plugins.plugin_sysctl: executing \['sysctl'," TEST_OUT
# According to bug, tuned should start within ~0.5 second
rlRun "timeout --kill-after=10 5 tuned --debug"
rlPhaseEnd

rlPhaseStartCleanup
Expand Down

0 comments on commit 3108e8c

Please sign in to comment.