projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Completes. But still wrong tests
[pazpar2-moved-to-github.git]
/
test
/
test_preferred.sh
diff --git
a/test/test_preferred.sh
b/test/test_preferred.sh
index
fe1f71b
..
e9899f4
100755
(executable)
--- a/
test/test_preferred.sh
+++ b/
test/test_preferred.sh
@@
-14,15
+14,18
@@
srcdir=${srcdir:-"."}
# exit 0
#fi
# exit 0
#fi
+TEST=test_preferred_
+
${srcdir}/run_pazpar2.sh test_preferred
E=$?
${srcdir}/run_pazpar2.sh test_preferred
E=$?
-grep "has preferred" pazpar2.log > test_preferred.log
+grep "has preferred" ${TEST}pazpar2.log | cut -f 4- -d ' ' > test_preferred.log
#
if [ -f test_preferred.res ] ; then
diff test_preferred.res test_preferred.log > test_preferred.dif
E2=$?
if [ $E2 -ne 0 ] ; then
#
if [ -f test_preferred.res ] ; then
diff test_preferred.res test_preferred.log > test_preferred.dif
E2=$?
if [ $E2 -ne 0 ] ; then
+ echo "has preferred test failed!"
E=$E2
fi
else
E=$E2
fi
else