1
0
Fork 0

devel: fix sort, retest only last results

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1403 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2013-09-26 07:47:59 +00:00
parent 498f03e25b
commit 58624130fa
1 changed files with 4 additions and 3 deletions

View File

@ -74,7 +74,7 @@ updatedeps() { # {{{1
hiecho required ../trunk-php5-debug-zts not found
return 1
fi
find . -iname \*.c | sort | while read -r sourceFile; do
find . -iname \*.c | LANG=C sort | while read -r sourceFile; do
sourceFile=${sourceFile#./}
{
case "$sourceFile" in
@ -118,7 +118,7 @@ updatedeps() { # {{{1
hiecho "$dependency not found" >&2
fi
esac
done | sort | uniq
done | LANG=C sort | uniq
} | xargs
done > Makefile.frag.deps
}
@ -259,7 +259,8 @@ run() {
;;
retest)
shift
$MAKE $MAKEOPTS xcachetest "$@" TESTS="`grep '^/.*\.phpt$' php_test_results_*.txt | uniq | xargs`"
lastResult=$(ls php_test_results_*.txt | LANG=C sort | tail -n1)
$MAKE $MAKEOPTS xcachetest "$@" TESTS="$(grep '^/.*\.phpt$' $lastResult | uniq | xargs)"
return
;;
test)