Skip to content
Permalink
Browse files

correctly exit spell check test to make Travis fail

  • Loading branch information
3nids committed Jan 25, 2017
1 parent 882a80a commit 0de00150d14072289e8cdccd3a0db86dbb8f69fe
Showing with 4 additions and 3 deletions.
  1. +3 −2 scripts/spell_check/check_spelling.sh
  2. +1 −1 tests/src/core/testqgsmapsettings.cpp
@@ -76,6 +76,8 @@ declare -A GLOBREP_ALLFILES=()
declare -A GLOBREP_CURRENTFILE=()
declare -A GLOBREP_IGNORE=()

ERRORFOUND=NO

for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
printf "Progress: %d/%d\n" $I $SPLIT
SPELLFILE=spelling$I~
@@ -125,8 +127,7 @@ for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
CASEMATCH=$(echo "(${CASEMATCH_FIXCASE}|${MATCHCASE_INWORD})" |${GP}sed -r 's/\(\|/(/' |${GP}sed -r 's/\|\|/|/g' |${GP}sed -r 's/\|\)/)/')'(?!.*'"${SPELLOKRX}"')'

FILE=$INPUTFILES # init with input files (if ag is run with single file, file path is now in output)
COMMANDS=""
ERRORFOUND=NO

while read -u 3 -r LINE; do
echo "$LINE"
ERRORFOUND=YES
@@ -175,7 +175,7 @@ void TestQgsMapSettings::testIsLayerVisible()
r = e2.evaluate( &context );
QCOMPARE( r.toBool(), true );

// test checking for non-existant layer
// test checking for non-existent layer
QgsExpression e3( QString( "is_layer_visible( 'non matching name' )" ) );
r = e3.evaluate( &context );
QCOMPARE( r.toBool(), false );

0 comments on commit 0de0015

Please sign in to comment.
You can’t perform that action at this time.