Skip to content

Commit ed5ac2b

Browse files
author
Vladimir Kotal
committed
set directory name before BazaarHistoryParser is created
1 parent b79fbf8 commit ed5ac2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/org/opensolaris/opengrok/history/BazaarHistoryParserTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ public void setUp() {
5757
if (RuntimeEnvironment.getInstance().getSourceRootPath() == null) {
5858
RuntimeEnvironment.getInstance().setSourceRoot("");
5959
}
60-
instance = new BazaarHistoryParser(new BazaarRepository());
60+
BazaarRepository bzrRepo = new BazaarRepository();
61+
// BazaarHistoryParser needs to have a valid directory name.
62+
bzrRepo.setDirectoryNameRelative("bzrRepo");
63+
instance = new BazaarHistoryParser(bzrRepo);
6164
}
6265

6366
@After

0 commit comments

Comments
 (0)