diff options
author | David Robillard <d@drobilla.net> | 2017-04-14 10:42:59 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-04-14 10:42:59 +0200 |
commit | f23287ff6bd5fbceca554b8473564dd9cf3ce96c (patch) | |
tree | f8acee91649d2ba002bb9f08af809c35edbc655e | |
parent | 8ee6ce6402bdf59e43b81aae8e64dbaeb12f2be3 (diff) | |
download | serd-f23287ff6bd5fbceca554b8473564dd9cf3ce96c.tar.gz serd-f23287ff6bd5fbceca554b8473564dd9cf3ce96c.tar.bz2 serd-f23287ff6bd5fbceca554b8473564dd9cf3ce96c.zip |
Print consistent relative paths in test output
-rw-r--r-- | wscript | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -336,13 +336,15 @@ def test_manifest(ctx, srcdir, testdir, report, base_uri, isyntax, osyntax, test asserter = 'http://drobilla.net/drobilla#me' def run_test(action_node, expected_return): - output = os.path.join('tests', testdir, action_node + '.out') - action = os.path.join(srcdir, 'tests', testdir, action_node) - rel = os.path.relpath(action, os.path.join(srcdir, 'tests', testdir)) - command = 'serdi_static -i %s -o %s -f "%s" "%s" > %s' % ( - isyntax, osyntax, action, base_uri + rel, output) - - return autowaf.run_test(ctx, APPNAME, command, expected_return, name=str(action)) + action = os.path.join('tests', testdir, action_node) + output = os.path.join('tests', testdir, action_node + '.out') + abs_action = os.path.join(srcdir, action) + rel = os.path.relpath(abs_action, os.path.join(srcdir, 'tests', testdir)) + command = 'serdi_static -i %s -o %s -f "%s" "%s" > %s' % ( + isyntax, osyntax, abs_action, base_uri + rel, output) + + return autowaf.run_test(ctx, APPNAME, command, + expected_return, name=str(action)) def run_tests(test_class, expected_return, check_result=False): autowaf.begin_tests(ctx, APPNAME, str(test_class)) |