adding a catch for the exception thrown by samtools when it attempts to close /dev/null in the performance tests.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3186 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
bbb83859cd
commit
be7cbf948b
|
|
@ -1,5 +1,6 @@
|
|||
package org.broadinstitute.sting.gatk.walkers.indels;
|
||||
|
||||
import net.sf.samtools.util.RuntimeIOException;
|
||||
import org.broadinstitute.sting.WalkerTest;
|
||||
import org.junit.Test;
|
||||
|
||||
|
|
@ -8,8 +9,8 @@ import java.util.ArrayList;
|
|||
public class IndelRealignerPerformanceTest extends WalkerTest {
|
||||
@Test
|
||||
public void testRealigner() {
|
||||
|
||||
WalkerTestSpec spec1 = new WalkerTestSpec(
|
||||
|
||||
"-R " + seqLocation + "references/Homo_sapiens_assembly18/v0/Homo_sapiens_assembly18.fasta" +
|
||||
" -T IndelRealigner" +
|
||||
" -LOD 5" +
|
||||
|
|
@ -24,8 +25,11 @@ public class IndelRealignerPerformanceTest extends WalkerTest {
|
|||
" -O /dev/null",
|
||||
0,
|
||||
new ArrayList<String>(0));
|
||||
executeTest("testRealignerTargetCreatorWholeGenome", spec1);
|
||||
|
||||
try {
|
||||
executeTest("testRealignerTargetCreatorWholeGenome", spec1);
|
||||
} catch (RuntimeIOException e) {
|
||||
// using /dev/null as an output source causes samtools to fail when it closes the stream, we shouldn't sweat it
|
||||
}
|
||||
WalkerTestSpec spec2 = new WalkerTestSpec(
|
||||
"-R " + seqLocation + "references/Homo_sapiens_assembly18/v0/Homo_sapiens_assembly18.fasta" +
|
||||
" -T IndelRealigner" +
|
||||
|
|
@ -41,6 +45,10 @@ public class IndelRealignerPerformanceTest extends WalkerTest {
|
|||
" -O /dev/null",
|
||||
0,
|
||||
new ArrayList<String>(0));
|
||||
executeTest("testRealignerTargetCreatorWholeExome", spec2);
|
||||
try {
|
||||
executeTest("testRealignerTargetCreatorWholeExome", spec2);
|
||||
} catch (RuntimeIOException e) {
|
||||
// using /dev/null as an output source causes samtools to fail when it closes the stream, we shouldn't sweat it
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
package org.broadinstitute.sting.gatk.walkers.recalibration;
|
||||
|
||||
import net.sf.samtools.util.RuntimeIOException;
|
||||
import org.broadinstitute.sting.WalkerTest;
|
||||
import org.junit.Test;
|
||||
|
||||
|
|
@ -19,7 +20,11 @@ public class RecalibrationWalkersPerformanceTest extends WalkerTest {
|
|||
" -recalFile /dev/null",
|
||||
0,
|
||||
new ArrayList<String>(0));
|
||||
executeTest("testCountCovariatesWholeGenome", spec);
|
||||
try {
|
||||
executeTest("testCountCovariatesWholeGenome", spec);
|
||||
} catch (RuntimeIOException e) {
|
||||
// using /dev/null as an output source causes samtools to fail when it closes the stream, we shouldn't sweat it
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -34,7 +39,11 @@ public class RecalibrationWalkersPerformanceTest extends WalkerTest {
|
|||
" -recalFile /dev/null",
|
||||
0,
|
||||
new ArrayList<String>(0));
|
||||
executeTest("testCountCovariatesWholeExome", spec);
|
||||
try {
|
||||
executeTest("testCountCovariatesWholeExome", spec);
|
||||
} catch (RuntimeIOException e) {
|
||||
// using /dev/null as an output source causes samtools to fail when it closes the stream, we shouldn't sweat it
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -49,7 +58,11 @@ public class RecalibrationWalkersPerformanceTest extends WalkerTest {
|
|||
" -outputBam /dev/null",
|
||||
0,
|
||||
new ArrayList<String>(0));
|
||||
executeTest("testTableRecalibratorWholeGenome", spec);
|
||||
try {
|
||||
executeTest("testTableRecalibratorWholeGenome", spec);
|
||||
} catch (RuntimeIOException e) {
|
||||
// using /dev/null as an output source causes samtools to fail when it closes the stream, we shouldn't sweat it
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -64,6 +77,10 @@ public class RecalibrationWalkersPerformanceTest extends WalkerTest {
|
|||
" -outputBam /dev/null",
|
||||
0,
|
||||
new ArrayList<String>(0));
|
||||
executeTest("testTableRecalibratorWholeExome", spec);
|
||||
try {
|
||||
executeTest("testTableRecalibratorWholeExome", spec);
|
||||
} catch (RuntimeIOException e) {
|
||||
// using /dev/null as an output source causes samtools to fail when it closes the stream, we shouldn't sweat it
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue