commit | 08414441a108bcbf488a1a8737403ea37802976c | [log] [tgz] |
---|---|---|
author | kisskys <kisskys@eaa15691-b419-025a-1212-ee371bd00084> | Wed Mar 27 04:56:13 2013 +0000 |
committer | kisskys <kisskys@eaa15691-b419-025a-1212-ee371bd00084> | Wed Mar 27 04:56:13 2013 +0000 |
tree | f52282f9764252323653076a5bca33de343b0cc3 | |
parent | e164dee81f5730a675244280f31693bbf0638276 [diff] |
Again, changed the test framework to ignore test files that do not match the expected test file format git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_stabilization@1404 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-test-framework/src/main/java/edu/uci/ics/asterix/testframework/context/TestCaseContext.java b/asterix-test-framework/src/main/java/edu/uci/ics/asterix/testframework/context/TestCaseContext.java index d5cf82a..d1818ff 100644 --- a/asterix-test-framework/src/main/java/edu/uci/ics/asterix/testframework/context/TestCaseContext.java +++ b/asterix-test-framework/src/main/java/edu/uci/ics/asterix/testframework/context/TestCaseContext.java
@@ -86,9 +86,19 @@ if (fileNames != null) { for (String fName : fileNames) { + if (fName.startsWith(".")) { + continue; + } + File testFile = new File(path, fName); TestFileContext tfsc = new TestFileContext(testFile); String[] nameSplits = fName.split("\\."); + + if (nameSplits.length < 3) { + throw new IllegalArgumentException("Test file '" + cUnit.getName() + File.separatorChar + + fName + "' does not have the proper test file name format."); + } + tfsc.setSeqNum(nameSplits[nameSplits.length - 2]); resultFileCtxs.add(tfsc); }