mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-07-17 21:17:16 +00:00
Fix selftest failures where empty 'profile' directory may not exist (eg git)
* SelfTestBase
...and make a tmp empty directory instead
This commit is contained in:
@@ -89,6 +89,8 @@ public abstract class SelfTestBase extends TmpDirTestCase {
|
||||
File profileTemplate = new File(src, "profile");
|
||||
if(profileTemplate.exists()) {
|
||||
org.apache.commons.io.FileUtils.copyDirectory(profileTemplate, tmpDefProfile);
|
||||
} else {
|
||||
tmpDefProfile.mkdirs();
|
||||
}
|
||||
|
||||
// Start up a Jetty that serves the selftest's content directory.
|
||||
|
||||
Reference in New Issue
Block a user