regtests: Do not complain if a patch has not been found

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3932 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-11-17 17:54:41 +00:00
parent 3749844c5f
commit 3581251728
+2 -2
View File
@@ -175,9 +175,9 @@ EOF
function test_scst_tree_patches {
local rc=0
echo "Testing whether the SCST patches apply cleanly to the SCST tree ..."
for p in *.patch srpt/patches/scst_increase_max_tgt_cmds.patch
for p in *.patch srpt/patches/scst*.patch
do
if ! patch -p0 -f --dry-run -s <$p &>/dev/null; then
if [ -e "$p" ] && ! patch -p0 -f --dry-run -s <$p &>/dev/null; then
echo "ERROR: patch $p does not apply cleanly."
rc=1
fi