mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-10-06 04:11:27 +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:
1 parent
c170390c0d
commit
600a4ca326
1 file changed
+2
@@ -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