Skip to content

Commit

Permalink
LRCI-3746 Validate bnd file and project name
Browse files Browse the repository at this point in the history
  • Loading branch information
brittneyq authored and brianchandotcom committed Aug 22, 2023
1 parent a9e0593 commit e1c5cda
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build-test-batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -832,8 +832,18 @@ mariadb.executable=${mariadb.executable}]]></echo>
File bndFile = getBndFile(new File(testClassFilePath));
if (bndFile == null) {
throw new Exception("Unable to find bnd.bnd file for " + testClassFilePath);
}
String testProjectName = getTestProjectName(bndFile);
if (testProjectName == null) {
throw new Exception("Unable to find corresponding project name for module test. Please add project name to modules/modules.properties.");
}
project.setProperty("test.name", getTestName(testClassFilePath));
project.setProperty("test.project.name", getTestProjectName(bndFile));
project.setProperty("test.project.name", testProjectName);
project.setProperty("test.project.results.dir", getTestProjectResultsDir(bndFile));
]]>
</beanshell>
Expand Down

0 comments on commit e1c5cda

Please sign in to comment.