test01_pkgquality: avoid use of pipes
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
e7cefb0ed0
commit
e77d5e88a3
@ -65,6 +65,10 @@ Sun Jan 15 2012 Davide Madrisan <davide.madrisan(a)gmail.com>
|
||||
* pck-update - Davide Madrisan:
|
||||
Print the list of packages before running the tests.
|
||||
|
||||
+ bugfix
|
||||
* tests/test01_pkgquality - Davide Madrisan:
|
||||
Avoid pipes otherwise the error counter will not display a correct value.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Changes in version 1.8.2
|
||||
|
@ -116,18 +116,18 @@ wrong symlink"": \`${NOTE}${f/./}${NORM}' --> \`${NOTE}$(readlink $f)${NORM}'"
|
||||
|
||||
let "i = 0"
|
||||
for pck in ${rpmpkg_name[@]}; do
|
||||
find $tmpextractdir/$i -type f \
|
||||
-exec grep -ls "$SPEC_BUILDROOT" {} \; | \
|
||||
while read filename; do
|
||||
pushd $tmpextractdir/$i >/dev/null
|
||||
for f in $(find -type f \
|
||||
-exec grep -ls "$SPEC_BUILDROOT" {} \;2>/dev/null); do
|
||||
notify.warning "${NOTE}${pck##*/}${NORM}"
|
||||
notify.note "\
|
||||
${NOTE}$(\
|
||||
echo $filename | sed "s,$tmpextractdir/$i,," )${NORM}"
|
||||
${NOTE}$(echo $f | sed "s,$tmpextractdir/$i,," )${NORM}"
|
||||
notify.note "$(\
|
||||
strings -a $filename | grep "^$SPEC_BUILDROOT" | sort -bu | \
|
||||
strings -a $f | grep "^$SPEC_BUILDROOT" | sort -bu | \
|
||||
sed "s,$SPEC_BUILDROOT\(.*\), - [%buildroot]\1,")"
|
||||
let "total_issues += 1"
|
||||
done
|
||||
popd >/dev/null
|
||||
let "i += 1"
|
||||
done
|
||||
fi
|
||||
@ -142,18 +142,18 @@ sed "s,$SPEC_BUILDROOT\(.*\), - [%buildroot]\1,")"
|
||||
|
||||
let "i = 0"
|
||||
for pck in ${rpmpkg_name[@]}; do
|
||||
find $tmpextractdir/$i -type f \
|
||||
-exec grep -ls "$BUILDDIR" {} \; | \
|
||||
while read filename; do
|
||||
notify.warning "${NOTE}${pck##*/}${NORM}"
|
||||
notify.note "\
|
||||
${NOTE}$(\
|
||||
echo $filename | sed "s,$tmpextractdir/$i,," )${NORM}"
|
||||
notify.note "$(\
|
||||
strings -a $filename | grep "$BUILDDIR" | sort -bu | \
|
||||
pushd $tmpextractdir/$i >/dev/null
|
||||
for f in $(find -type f \
|
||||
-exec grep -ls "$BUILDDIR" {} \; 2>/dev/null); do
|
||||
notify.warning "${NOTE}${pck##*/}${NORM}"
|
||||
notify.note "\
|
||||
${NOTE}$(echo $f | sed "s,$tmpextractdir/$i,," )${NORM}"
|
||||
notify.note "$(\
|
||||
strings -a $f | grep "$BUILDDIR" | sort -bu | \
|
||||
sed "s,$BUILDDIR,[%_builddir],g;s,.*, - &,")"
|
||||
let "total_issues += 1"
|
||||
done
|
||||
let "total_issues += 1"
|
||||
done
|
||||
popd >/dev/null
|
||||
let "i += 1"
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user