Skip to content

Commit

Permalink
qa/1190: treat pmlogger "activating" the same as "active"
Browse files Browse the repository at this point in the history
Prevents some failures, especially when called from check.callback
... qa/031 and qa/525 both seem susceptible to tripping up here.
  • Loading branch information
kmcdonell committed Sep 27, 2023
1 parent e6bf03d commit 5fc0493
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions qa/1190
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,18 @@ fi

$PCP_PS_PROG $PCP_PS_ALL_FLAGS | grep -E '[P]ID|[p]mlogger .*-P ' >$tmp.out
n=`grep -v PID <$tmp.out | wc -l | sed -e 's/ //g'`
if [ "$n" -eq 0 ]
then
# if systemctl is in the frame, check for Activating ... we may
# be checking a bit too soon and consider Activating the same as
# Active for the current purposes
#
_systemctl_status pmlogger >$tmp.activating
if grep "Active: activating" $tmp.activating >/dev/null
then
n=1
fi
fi
if [ "$n" -eq 1 ]
then
$check || echo "Count of primary pmlogger's ... OK"
Expand Down

0 comments on commit 5fc0493

Please sign in to comment.