From 58624130fa8ce7bc88b7a38e3cd82693808bc1af Mon Sep 17 00:00:00 2001 From: Xuefer Date: Thu, 26 Sep 2013 07:47:59 +0000 Subject: [PATCH] devel: fix sort, retest only last results git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1403 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- devel/run | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/devel/run b/devel/run index f9bf354..d0d3954 100755 --- a/devel/run +++ b/devel/run @@ -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)