Skip to content

Commit

Permalink
PythonTests: temp files (wc.db copies) should be removed after compar…
Browse files Browse the repository at this point in the history
…ison.
  • Loading branch information
dmitry committed Jul 3, 2012
1 parent b34cc86 commit 9343f2e
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,22 @@ private static void processMatchedGitCommits(File workingCopiesDirectory, GitRep
final File wcDbAfterJSVN = SVNFileUtil.createTempFile("svnkit.tests.wc.db.after.jsvn", "");
final File wcDbAfterSVN = SVNFileUtil.createTempFile("svnkit.tests.wc.db.after.svn", "");

gitRepositoryAccess.copyBlobToFile(wcDbBlobAfterJSVN, wcDbAfterJSVN);
gitRepositoryAccess.copyBlobToFile(wcDbBlobAfterSVN, wcDbAfterSVN);
try {

gitRepositoryAccess.copyBlobToFile(wcDbBlobAfterJSVN, wcDbAfterJSVN);
gitRepositoryAccess.copyBlobToFile(wcDbBlobAfterSVN, wcDbAfterSVN);

compareWCDbContents(commitInfoAfterJSVN, commitInfoAfterSVN, wcDbAfterJSVN, wcDbAfterSVN);
compareWCDbContents(commitInfoAfterJSVN, commitInfoAfterSVN, wcDbAfterJSVN, wcDbAfterSVN);
} finally {
try {
SVNFileUtil.deleteFile(wcDbAfterJSVN);
} catch (SVNException ignore) {
}
try {
SVNFileUtil.deleteFile(wcDbAfterSVN);
} catch (SVNException ignore) {
}
}
}

private static boolean areEqual(Object o1, Object o2) {
Expand Down

0 comments on commit 9343f2e

Please sign in to comment.