diff tests/test-json-destinations/test-json-destinations.sh @ 152:db83ea0e102d jams

Make the JSON well-formed (though still empty), except in the case where we are asked to write more than one file's features to the same output file or stdout
author Chris Cannam
date Tue, 14 Oct 2014 12:35:19 +0100
parents a1300db6c63e
children 859d8ec60e06
line wrap: on
line diff
--- a/tests/test-json-destinations/test-json-destinations.sh	Tue Oct 14 11:27:43 2014 +0100
+++ b/tests/test-json-destinations/test-json-destinations.sh	Tue Oct 14 12:35:19 2014 +0100
@@ -80,10 +80,10 @@
 
 ctx="onsets transform, two audio files, one-file JSON writer"
 
-# Does not support one file across all tracks
+$r -t $transformdir/onsets.n3 -w json --json-one-file $tmpjson $infile1 $infile2 2>/dev/null || \
+    fail "Fails to run with $ctx"
 
-$r -t $transformdir/onsets.n3 -w json --json-one-file $tmpjson $infile1 $infile2 2>/dev/null && \
-    fail "Fails by completing successfully with $ctx"
+check_json $tmpjson "$ctx"
 
 
 ctx="onsets transform, two audio files, stdout JSON writer"