Add another file exclude, and hae the test print out which fails failed to make it quicker to spot in the jenkins failure email
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1675719 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
20fa446f40
commit
b68dcd9df5
@ -234,6 +234,7 @@ public class TestAllFiles {
|
|||||||
EXPECTED_FAILURES.add("spreadsheet/testEXCEL_4.xls");
|
EXPECTED_FAILURES.add("spreadsheet/testEXCEL_4.xls");
|
||||||
EXPECTED_FAILURES.add("spreadsheet/testEXCEL_5.xls");
|
EXPECTED_FAILURES.add("spreadsheet/testEXCEL_5.xls");
|
||||||
EXPECTED_FAILURES.add("spreadsheet/testEXCEL_95.xls");
|
EXPECTED_FAILURES.add("spreadsheet/testEXCEL_95.xls");
|
||||||
|
EXPECTED_FAILURES.add("poifs/unknown_properties.msg"); // POIFS properties corrupted
|
||||||
|
|
||||||
// OOXML Strict is not yet supported, see bug #57699
|
// OOXML Strict is not yet supported, see bug #57699
|
||||||
EXPECTED_FAILURES.add("spreadsheet/SampleSS.strict.xlsx");
|
EXPECTED_FAILURES.add("spreadsheet/SampleSS.strict.xlsx");
|
||||||
@ -296,12 +297,14 @@ public class TestAllFiles {
|
|||||||
} else {
|
} else {
|
||||||
// check if we expect failure for this file
|
// check if we expect failure for this file
|
||||||
if(!EXPECTED_FAILURES.contains(file) && !AbstractFileHandler.EXPECTED_EXTRACTOR_FAILURES.contains(file)) {
|
if(!EXPECTED_FAILURES.contains(file) && !AbstractFileHandler.EXPECTED_EXTRACTOR_FAILURES.contains(file)) {
|
||||||
|
System.out.println("Failed: " + file);
|
||||||
throw new Exception("While handling " + file, e);
|
throw new Exception("While handling " + file, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// check if we expect failure for this file
|
// check if we expect failure for this file
|
||||||
if(!EXPECTED_FAILURES.contains(file) && !AbstractFileHandler.EXPECTED_EXTRACTOR_FAILURES.contains(file)) {
|
if(!EXPECTED_FAILURES.contains(file) && !AbstractFileHandler.EXPECTED_EXTRACTOR_FAILURES.contains(file)) {
|
||||||
|
System.out.println("Failed: " + file);
|
||||||
throw new Exception("While handling " + file, e);
|
throw new Exception("While handling " + file, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user