Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
correctly exit spell check test to make Travis fail
  • Loading branch information
3nids committed Jan 25, 2017
1 parent 882a80a commit 0de0015
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions scripts/spell_check/check_spelling.sh
Expand Up @@ -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~
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgsmapsettings.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 0de0015

Please sign in to comment.