diff options
author | David Robillard <d@drobilla.net> | 2016-09-19 18:56:25 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-09-19 18:56:25 -0400 |
commit | e7e0313b423a37f71a4d2cf7db7b26dfd6131140 (patch) | |
tree | 84ad7bccd7870d912c3503a40b665ce36a87ce0b | |
parent | b4392ac59cba74b3e5f612ad734890648ec5a3b8 (diff) | |
download | sord-e7e0313b423a37f71a4d2cf7db7b26dfd6131140.tar.gz sord-e7e0313b423a37f71a4d2cf7db7b26dfd6131140.tar.bz2 sord-e7e0313b423a37f71a4d2cf7db7b26dfd6131140.zip |
Avoid write error test unless /dev/full is present
-rw-r--r-- | wscript | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -289,13 +289,15 @@ def test(ctx): 'sordi_static %s > %s' % (nul, nul)], 0, name='sordi-cmd-good') - autowaf.run_tests(ctx, APPNAME, [ - # Test read error by reading a directory - 'sordi_static "file://%s/"' % srcdir, - - # Test write error by writing to /dev/full - 'sordi_static "file://%s/tests/manifest.ttl" > /dev/full' % srcdir - ], 1, name='io_errors') + # Test read error by reading a directory + autowaf.run_test(ctx, APPNAME, 'sordi_static "file://%s/"' % srcdir, + 1, name='read_error') + + # Test write error by writing to /dev/full + if os.path.exists('/dev/full'): + autowaf.run_test(ctx, APPNAME, + 'sordi_static "file://%s/tests/good/manifest.ttl" > /dev/full' % srcdir, + 1, name='write_error') autowaf.run_tests(ctx, APPNAME, [ 'sordi_static > %s' % nul, |