tmp directory doesn't exist on unix based machines by default. I modified the ComparisonTests to create the test file and contained directories if that file doesn't already exist so that tests will now pass again

This commit is contained in:
markiantorno 2020-06-01 10:10:24 -04:00
parent a0245ca926
commit ea7b9de3c5
1 changed files with 31 additions and 28 deletions

View File

@ -863,6 +863,9 @@ public class HierarchicalTableGenerator extends TranslatingUtilities {
b.append(".png");
String file = Utilities.path(dest, b.toString());
if (!new File(file).exists()) {
File newFile = new File(file);
newFile.getParentFile().mkdirs();
newFile.createNewFile();
FileOutputStream stream = new FileOutputStream(file);
genImage(indents, hasChildren, lineColor, stream);
if (outputTracker!=null)