Skip to content

Commit

Permalink
Don't attempt every WML test if binary missing
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 30, 2016
1 parent 249792e commit 94d3d5a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions run_wml_tests
Expand Up @@ -274,6 +274,19 @@ shift $(($OPTIND - 1))

extra_opts+="$*"

# Make sure the binary exists
if [ "$DebugMode" -eq 1 ]; then
if [ "! ( -f $BinPath/wesnoth-debug -a -x $BinPath/wesnoth-debug )" ]; then
echo "Wesnoth binary not found at $BinPath/wesnoth-debug"
exit 1
fi
else
if [ "! ( -f $BinPath/wesnoth -a -x $BinPath/wesnoth )" ]; then
echo "Wesnoth binary not found at $BinPath/wesnoth"
exit 1
fi
fi

if [ "$Verbose" -ge 2 ]; then
if [ "${#extra_opts}" -ge 0 ]; then
echo "Found additional arguments to wesnoth: " "$extra_opts"
Expand Down

0 comments on commit 94d3d5a

Please sign in to comment.