diff options
author | David Robillard <d@drobilla.net> | 2012-01-16 00:58:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-16 00:58:30 +0000 |
commit | d3f590c37109283d3f061403c1e4a691349f608b (patch) | |
tree | 58d928729ef3b66ed197db4a7988c54d9e5c740a | |
parent | e092ff09351eca0f4c2405d594e871f595f080fc (diff) | |
download | serd-d3f590c37109283d3f061403c1e4a691349f608b.tar.gz serd-d3f590c37109283d3f061403c1e4a691349f608b.tar.bz2 serd-d3f590c37109283d3f061403c1e4a691349f608b.zip |
Fix test suite with Python 2.4.
git-svn-id: http://svn.drobilla.net/serd/trunk@284 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r-- | wscript | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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) ] |