pcp
[Top] [All Lists]

[pcp] qa/041 root filtering

To: pcp@xxxxxxxxxxx
Subject: [pcp] qa/041 root filtering
From: Tomas Dohnalek <tdohnale@xxxxxxxxxx>
Date: Tue, 2 Oct 2012 13:37:28 -0400 (EDT)
In-reply-to: <930522175.1506714.1349188054716.JavaMail.root@xxxxxxxxxx>
Hi,
while testing I found this issue when running 041 test:

041 48s ... - output mismatch (see 041.out.bad)
21c21
< $PCP_RC_DIR/pmcd: Warning: Forcing pmcd to terminate!
---
> /opt/rh/devtoolset-1.1/    root ... /etc/rc.d/init.d/pmcd: Warning: Forcing 
> pmcd to terminate!

This happens, when PCP_RC_DIR contains `root' string in path.

See patch below.
---
Replace `root' string in filter only in the beginning of line.

diff --git a/qa/041 b/qa/041
index b24f4db..1f11778 100755
--- a/qa/041
+++ b/qa/041
@@ -24,7 +24,7 @@ _filter()
        -e '/UNAME/d' \
        -e '/USER/d' \
        -e '/host/s/host "[^"]*"/host SOMEHOST/' \
-       -e 's/ *root[^/]*\//    root ... \//' \
+       -e 's/^ *root[^/]*\//    root ... \//' \
        -e 's/pmcd -.*/pmcd/' \
        -e '/__pmGetPDU:.*illegal PDU len=0/d' \
     | _filter_pcp_start \

--
Tomas Dohnalek
QE Tools Intern
IRC: tdohnale

<Prev in Thread] Current Thread [Next in Thread>