From 5671992db3ef5e04ed4de60f65ba65d42714d232 Mon Sep 17 00:00:00 2001 From: Mark DePristo Date: Wed, 25 Jul 2012 22:05:04 -0400 Subject: [PATCH] RMDTrackBuilderUnitTest now uses private/testdata file to avoid filesystem race conditions --- .../sting/gatk/refdata/tracks/RMDTrackBuilderUnitTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/java/test/org/broadinstitute/sting/gatk/refdata/tracks/RMDTrackBuilderUnitTest.java b/public/java/test/org/broadinstitute/sting/gatk/refdata/tracks/RMDTrackBuilderUnitTest.java index 724c343e4..6264758ad 100644 --- a/public/java/test/org/broadinstitute/sting/gatk/refdata/tracks/RMDTrackBuilderUnitTest.java +++ b/public/java/test/org/broadinstitute/sting/gatk/refdata/tracks/RMDTrackBuilderUnitTest.java @@ -131,7 +131,7 @@ public class RMDTrackBuilderUnitTest extends BaseTest { @Test public void testGenerateIndexForUnindexedFile() { - File vcfFile = new File(validationDataLocation + "/ROD_validation/always_reindex.vcf"); + File vcfFile = new File(privateTestDir + "always_reindex.vcf"); File vcfFileIndex = Tribble.indexFile(vcfFile); // if we can't write to the directory, don't fault the tester, just pass @@ -141,7 +141,8 @@ public class RMDTrackBuilderUnitTest extends BaseTest { } // clean-up our test, and previous tests that may have written the file vcfFileIndex.deleteOnExit(); - if (vcfFileIndex.exists()) vcfFileIndex.delete(); + if (vcfFileIndex.exists()) + vcfFileIndex.delete(); try { builder.loadIndex(vcfFile, new VCFCodec());