aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-19 18:56:54 -0400
committerDavid Robillard <d@drobilla.net>2016-09-19 18:56:54 -0400
commit8df48c1a54e397e2b3ce1f7787915b089d3714e6 (patch)
treeb1992c5ab014410dd421fb987efc9635670cb587 /wscript
parent700bec373e786a3b05ebb0de1a232c0cfc9a2574 (diff)
downloadserd-8df48c1a54e397e2b3ce1f7787915b089d3714e6.tar.gz
serd-8df48c1a54e397e2b3ce1f7787915b089d3714e6.tar.bz2
serd-8df48c1a54e397e2b3ce1f7787915b089d3714e6.zip
Avoid write error test unless /dev/full is present
Diffstat (limited to 'wscript')
-rw-r--r--wscript14
1 files changed, 8 insertions, 6 deletions
diff --git a/wscript b/wscript
index 6e871389..68781c11 100644
--- a/wscript
+++ b/wscript
@@ -415,13 +415,15 @@ def test(ctx):
'serdi_static %s > %s' % (nul, nul)
], 0, name='serdi-cmd-good')
- autowaf.run_tests(ctx, APPNAME, [
- # Test read error by reading a directory
- 'serdi_static "file://%s/"' % srcdir,
+ # Test read error by reading a directory
+ autowaf.run_test(ctx, APPNAME, 'serdi_static "file://%s/"' % srcdir,
+ 1, name='read_error')
- # Test write error by writing to /dev/full
- 'serdi_static "file://%s/tests/good/manifest.ttl" > /dev/full' % srcdir
- ], 1, name='io_errors')
+ # Test write error by writing to /dev/full
+ if os.path.exists('/dev/full'):
+ autowaf.run_test(ctx, APPNAME,
+ 'serdi_static "file://%s/tests/good/manifest.ttl" > /dev/full' % srcdir,
+ 1, name='write_error')
autowaf.run_tests(ctx, APPNAME, [
'serdi_static -q "file://%s/tests/bad-id-clash.ttl" > %s' % (srcdir, nul),