From 16d8f020bb784e734a42ea3141670e9c953e2e90 Mon Sep 17 00:00:00 2001 From: Robert Buels Date: Thu, 2 Aug 2012 10:48:52 -0400 Subject: [PATCH] fix stdin-buffering problem adding bigwig track volvox selenium tests --- tests/selenium_tests/volvox_biodb_test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/selenium_tests/volvox_biodb_test.py b/tests/selenium_tests/volvox_biodb_test.py index fb7dfa0d52..2459345325 100644 --- a/tests/selenium_tests/volvox_biodb_test.py +++ b/tests/selenium_tests/volvox_biodb_test.py @@ -14,14 +14,18 @@ def setUp( self ): call( "bin/prepare-refseqs.pl --fasta docs/tutorial/data_files/volvox.fa --out sample_data/json/volvox/", shell=True ) call( "bin/biodb-to-json.pl --conf docs/tutorial/conf_files/volvox.json --out sample_data/json/volvox/", shell=True ) call( "bin/wig-to-json.pl --out sample_data/json/volvox/ --wig docs/tutorial/data_files/volvox_microarray.wig", shell=True ) + # add a definition for the volvox bigwig test track - subprocess.Popen( ["bin/add-track-json.pl","sample_data/json/volvox/trackList.json"], stdin=PIPE ).stdin.write("""{ + addtrack = subprocess.Popen( ["bin/add-track-json.pl","sample_data/json/volvox/trackList.json"], stdin=PIPE ); + addtrack.stdin.write("""{ "label": "volvox_microarray.bw", "key": "volvox_microarray.bw", "urlTemplate": "../../raw/volvox/volvox_microarray.bw", "type": "JBrowse/View/Track/Wiggle", "storeClass": "JBrowse/Store/BigWig" - }"""); + }""") + addtrack.stdin.close() + call( "bin/generate-names.pl --dir sample_data/json/volvox/", shell=True ) super( AbstractVolvoxBiodbTest, self ).setUp()