Revert "Appending to md5db in the gatkdir, with additional logging."

This reverts commit 0aa2884f7b006f5d48c325bf942b92c183e45074.
This commit is contained in:
Khalid Shakir 2014-07-11 01:11:20 +08:00
parent af0aab8791
commit cc09ef9190
4 changed files with 4 additions and 47 deletions

View File

@ -204,10 +204,6 @@
<includes>
<include>**/*UnitTest.class</include>
</includes>
<systemPropertyVariables>
<gatkdir>${gatk.basedir}</gatkdir>
<testType>unit</testType>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
@ -240,10 +236,6 @@
<includes>
<include>**/*IntegrationTest.class</include>
</includes>
<systemPropertyVariables>
<gatkdir>${gatk.basedir}</gatkdir>
<testType>integrationtest</testType>
</systemPropertyVariables>
</configuration>
</execution>
</executions>

View File

@ -424,10 +424,6 @@
<includes>
<include>**/*UnitTest.class</include>
</includes>
<systemPropertyVariables>
<gatkdir>${gatk.basedir}</gatkdir>
<testType>unit</testType>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
@ -478,10 +474,6 @@
<includes>
<include>**/*IntegrationTest.class</include>
</includes>
<systemPropertyVariables>
<gatkdir>${gatk.basedir}</gatkdir>
<testType>integration</testType>
</systemPropertyVariables>
</configuration>
</execution>
<execution>
@ -499,10 +491,6 @@
<includes>
<include>**/*QueueTest.class</include>
</includes>
<systemPropertyVariables>
<gatkdir>${gatk.basedir}</gatkdir>
<testType>queue</testType>
</systemPropertyVariables>
</configuration>
</execution>
<execution>
@ -519,10 +507,6 @@
<includes>
<include>**/*LargeScaleTest.class</include>
</includes>
<systemPropertyVariables>
<gatkdir>${gatk.basedir}</gatkdir>
<testType>largescale</testType>
</systemPropertyVariables>
</configuration>
</execution>
<execution>
@ -539,10 +523,6 @@
<includes>
<include>**/*KnowledgeBaseTest.class</include>
</includes>
<systemPropertyVariables>
<gatkdir>${gatk.basedir}</gatkdir>
<testType>knowledgebasetests</testType>
</systemPropertyVariables>
</configuration>
</execution>
</executions>

View File

@ -88,10 +88,7 @@ public abstract class BaseTest {
public static final Logger logger = CommandLineUtils.getStingLogger();
private static final String CURRENT_DIRECTORY = System.getProperty("user.dir");
public static final String gatkDirectory = System.getProperty("gatkdir", CURRENT_DIRECTORY) + "/";
public static final String baseDirectory = System.getProperty("basedir", CURRENT_DIRECTORY) + "/";
public static final String testType = System.getProperty("testType"); // May be null
public static final String testTypeSubDirectory = testType == null ? "" : ("/" + testType); // May be empty
public static final String hg18Reference = "/seq/references/Homo_sapiens_assembly18/v0/Homo_sapiens_assembly18.fasta";
public static final String hg19Reference = "/seq/references/Homo_sapiens_assembly19/v1/Homo_sapiens_assembly19.fasta";

View File

@ -49,7 +49,7 @@ public class MD5DB {
*/
private static final int MAX_RECORDS_TO_READ = 1000000;
private static final int MAX_RAW_DIFFS_TO_SUMMARIZE = -1;
public static final String LOCAL_MD5_DB_DIR = BaseTest.gatkDirectory + "integrationtests";
public static final String LOCAL_MD5_DB_DIR = BaseTest.baseDirectory + "integrationtests";
public static final String GLOBAL_MD5_DB_DIR = "/humgen/gsa-hpprojects/GATK/data/integrationtests";
// tracking and emitting a data file of origina and new md5s
@ -65,26 +65,14 @@ public class MD5DB {
ensureMd5DbDirectory();
boolean exists = MD5MismatchesFile.exists();
if (!exists) {
logger.warn("Creating md5 mismatch db at " + MD5MismatchesFile);
} else {
logger.warn("Updating md5 mismatch db at " + MD5MismatchesFile);
}
logger.warn("GATK directory: " + BaseTest.gatkDirectory);
logger.warn("Base directory: " + BaseTest.baseDirectory);
logger.warn("Test type: " + BaseTest.testType);
logger.debug("Creating md5 mismatch db at " + MD5MismatchesFile);
try {
md5MismatchStream = new PrintStream(new FileOutputStream(MD5MismatchesFile, true));
md5MismatchStream = new PrintStream(new FileOutputStream(MD5MismatchesFile));
md5MismatchStream.printf("%s\t%s\t%s%n", "expected", "observed", "test");
} catch ( FileNotFoundException e ) {
throw new ReviewedGATKException("Failed to open md5 mismatch file", e);
}
if (!exists) {
md5MismatchStream.printf("%s\t%s\t%s%n", "expected", "observed", "test");
}
}
public void close() {