Skip to content

Commit

Permalink
Merge branch 'main' of ../pcp
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcdonell committed Mar 23, 2024
2 parents d5625c3 + fd8380b commit 1fbc0c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions qa/1488
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ fi

$sudo rm -rf $tmp $tmp.* $seq.full

# check on initial state
systemctl status pmlogger_farm.service >>$seq.full 2>&1

_cleanup()
{
cd $here
Expand All @@ -41,9 +38,15 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
_filter()
{
sed \
-e '/couldn.t find cgroup.procs/d' \
-e '/added/{
s@namespace ""@namespace <OK>@
s@namespace "/unified"@namespace <OK>@
}' \
-e "s@$$@MYPID@g" \
-e 's/ */ /g' \
-e 's/├─ /├─/' \
-e 's@/usr/bin/sh@/bin/sh@' \
# end
}

Expand All @@ -59,7 +62,7 @@ migrate_pid_service -v $$ pmlogger_farm.service
End-of-File

chmod 755 $tmp.sh
$sudo $tmp.sh | _filter
$sudo $tmp.sh 2>&1 | tee -a $seq.full | _filter
systemctl -l --quiet --no-pager status pmlogger_farm.service >$tmp.out 2>&1
cat $tmp.out >>$seq.full
grep "$$" $tmp.out | _filter
Expand Down
2 changes: 1 addition & 1 deletion qa/1488.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
QA output created by 1488
migrate_pid_service: added pid MYPID to service "pmlogger_farm.service" using namespace ""
migrate_pid_service: added pid MYPID to service "pmlogger_farm.service" using namespace <OK>
├─MYPID /bin/sh ./1488

0 comments on commit 1fbc0c0

Please sign in to comment.