From d3f590c37109283d3f061403c1e4a691349f608b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 16 Jan 2012 00:58:30 +0000 Subject: Fix test suite with Python 2.4. git-svn-id: http://svn.drobilla.net/serd/trunk@284 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- wscript | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 6840d0d4..2183d326 100644 --- a/wscript +++ b/wscript @@ -332,11 +332,16 @@ def test(ctx): num += 1 bulk = (num % 2 == 0) full = (num % 5 == 0) + flags = '' + if (num % 2 == 0): + flags += '-b' + if (num % 5 == 0): + flags += ' -f' base_uri = 'http://www.w3.org/2001/sw/DataAccess/df1/' + test out_filename = test + '.thru' commands += [ - '%s %s %s -i ntriples -o turtle -p foo %s/%s \'%s\' | %s -i turtle -o ntriples -c foo - \'%s\' | sed \'s/_:docid/_:genid/g\' > %s.thru' % ( - 'serdi_static', '-b' if bulk else ' ', '-f' if full else ' ', + '%s %s -i ntriples -o turtle -p foo %s/%s \'%s\' | %s -i turtle -o ntriples -c foo - \'%s\' | sed \'s/_:docid/_:genid/g\' > %s.thru' % ( + 'serdi_static', flags.ljust(5), srcdir, test, base_uri, 'serdi_static', base_uri, test) ] -- cgit v1.2.1