pcp
[Top] [All Lists]

[pcp] qa/366 absolute paths

To: pcp@xxxxxxxxxxx
Subject: [pcp] qa/366 absolute paths
From: Tomas Dohnalek <tdohnale@xxxxxxxxxx>
Date: Wed, 03 Oct 2012 21:15:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1
Patch replaces absolute paths by paths with $PCP_VAR_LIB prefixes.

diff --git a/qa/366 b/qa/366
index 68b9088..98d40e8 100755
--- a/qa/366
+++ b/qa/366
@@ -21,6 +21,11 @@ fi

 echo "QA output created by $seq"

+_filter()
+{
+    sed -e "s;$PCP_VAR_DIR;\$PCP_VAR_DIR;g"
+}
+
 . ./localconfig
 rm -f $seq.out
 if [ -f $seq.$PCP_PLATFORM ]
@@ -269,7 +274,7 @@ echo q \
 cat $tmp.conf >$seq.full

 diff $tmp.orig $tmp.conf \
-| sed -e '/^[0-9]/d'
+| sed -e '/^[0-9]/d' | _filter

 # success, all done
 exit
diff --git a/qa/366.darwin b/qa/366.darwin
index d2ca1d3..03c85cd 100644
--- a/qa/366.darwin
+++ b/qa/366.darwin
@@ -2,7 +2,7 @@ QA output created by 366
 < #pmlogconf 1.0
 ---
 > #pmlogconf 2.0
-> #+ groupdir /var/lib/pcp/config/pmlogconf
+> #+ groupdir $PCP_VAR_DIR/config/pmlogconf
 > #
 < #+ I0:n:once:
 < ## hardware configuration [nodevis, osvis, oview, routervis,
diff --git a/qa/366.linux b/qa/366.linux
index 0f9597d..726cee1 100644
--- a/qa/366.linux
+++ b/qa/366.linux
@@ -2,7 +2,7 @@ QA output created by 366
 < #pmlogconf 1.0
 ---
 > #pmlogconf 2.0
-> #+ groupdir /var/lib/pcp/config/pmlogconf
+> #+ groupdir $PCP_VAR_DIR/config/pmlogconf
 > #
 < #+ I0:n:once:
 < ## hardware configuration [nodevis, osvis, oview, routervis,
diff --git a/qa/366.solaris b/qa/366.solaris
index a3a1e13..fee27a5 100644
--- a/qa/366.solaris
+++ b/qa/366.solaris
@@ -2,7 +2,7 @@ QA output created by 366
 < #pmlogconf 1.0
 ---
 > #pmlogconf 2.0
-> #+ groupdir /var/lib/pcp/config/pmlogconf
+> #+ groupdir $PCP_VAR_DIR/config/pmlogconf
 > #
 < #+ I0:n:once:
 < ## hardware configuration [nodevis, osvis, oview, routervis,

--
Tomas Dohnalek
QE Tools Intern
Red Hat

<Prev in Thread] Current Thread [Next in Thread>
  • [pcp] qa/366 absolute paths, Tomas Dohnalek <=