Sisyphus|JavaScript Tests - fix runtests.sh -e extra argument processing, bug 412317, not part of the build

This commit is contained in:
bclary@bclary.com 2008-01-14 11:07:01 -08:00
Родитель 943c91c3c1
Коммит 12fa39509d
1 изменённых файлов: 8 добавлений и 15 удалений

Просмотреть файл

@ -138,19 +138,12 @@ export testlogfile
# exit code, we must pipe stderr from tester.sh to stdout and then
# look into the testlogfilelist for the error
if [[ -z "$extra" ]]; then
tester.sh -t $TEST_JSDIR/test.sh $verboseflag "$products" "$branches" "$buildtypes" 2>&1 | tee -a $testlogfilelist
if grep -q 'test-setup.sh failed' $testlogfilelist; then
error "runtests.sh: terminating due to error"
fi
testlogfiles="`grep '^log:' $testlogfilelist|sed 's|^log: ||'`"
else
tester.sh -t $TEST_JSDIR/test.sh $verboseflag "$products" "$branches" "$extra" "$buildtypes" 2>&1 | tee -a $testlogfilelist
if grep -q 'test-setup.sh failed' $testlogfilelist; then
error "runtests.sh: terminating due to error"
fi
testlogfiles="`grep '^log:' $testlogfilelist|sed 's|^log: ||'`"
branchesextra=`combo.sh -d - "$branches" "$extra"`
tester.sh -t $TEST_JSDIR/test.sh $verboseflag "$products" "$branchesextra" "$buildtypes" 2>&1 | tee -a $testlogfilelist
if grep -q 'test-setup.sh failed' $testlogfilelist; then
error "runtests.sh: terminating due to error"
fi
testlogfiles="`grep '^log:' $testlogfilelist|sed 's|^log: ||'`"
rm $testlogfilelist
@ -184,9 +177,9 @@ for testlogfile in $testlogfiles; do
*) error "unknown buildtype in logfile $testlogfile";;
esac
case "$testlogfile" in
*,1.8.0,*) branch=1.8.0;;
*,1.8.1,*) branch=1.8.1;;
*,1.9.0,*) branch=1.9.0;;
*,1.8.0*) branch=1.8.0;;
*,1.8.1*) branch=1.8.1;;
*,1.9.0*) branch=1.9.0;;
*) error "unknown branch in logfile $testlogfile";;
esac
outputprefix=$testlogfile