aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-11-11 11:20:29 +0100
committerDavid Robillard <d@drobilla.net>2018-11-11 11:20:47 +0100
commit0cecfb2d72a1b8b972e91e9645cca4d6de53e357 (patch)
tree233fec17d314c7c593de56280b4cf72fa4c6c5ba
parent6a26f8accd2c40151095adb35792fa35681a1f53 (diff)
downloadserd-0cecfb2d72a1b8b972e91e9645cca4d6de53e357.tar.gz
serd-0cecfb2d72a1b8b972e91e9645cca4d6de53e357.tar.bz2
serd-0cecfb2d72a1b8b972e91e9645cca4d6de53e357.zip
Fix error message output test
-rw-r--r--wscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/wscript b/wscript
index ecba9ad3..2c8d45ff 100644
--- a/wscript
+++ b/wscript
@@ -339,10 +339,10 @@ def test_suite(ctx, base_uri, testdir, report, isyntax, osyntax, options=''):
def run_test(command, expected_return, name, quiet=False):
header = Options.options.verbose_tests
result = autowaf.run_test(ctx, APPNAME, command, expected_return, name=name, header=header, quiet=quiet)
- if not result[0]:
+ if expected_return is not None and expected_return != 0:
autowaf.run_test(ctx, APPNAME,
- lambda: result[1][1] != '',
- True, name=name + ' has error message', quiet=True)
+ lambda: bool(result[1][1]),
+ True, name=name + ' prints error message', quiet=True)
return result
def run_tests(test_class, expected_return):