Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail integration test when no jdk1.7 exists #41

Conversation

junoyoon
Copy link
Collaborator

@junoyoon junoyoon commented Mar 5, 2023

Prevent scavenger project intellij import failure when the no JDK1.7 exists

  • old-agent should not block whole project import. because it will be rarely compiled.

}.get().executablePath
} catch (e : Exception) {
logger.warn("The scavenger old agent should be built on JDK1.7. But it does not exist in this build")
"---"
Copy link
Collaborator Author

@junoyoon junoyoon Mar 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add no jdk1.7 exit signal with "---"

@@ -61,7 +62,7 @@ public static void beforeAll() {
assertNotNull("This test must be started from Gradle", codekvastAgentPath);
assertNotNull("This test must be started from Gradle", classpath);
assertNotNull("This test must be started from Gradle", javaPaths);

assertFalse("This test must be tested with JDK1.7", javaPaths.contains("---"));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fail the integration test with "---" property.

Copy link
Contributor

@taeyeon-Kim taeyeon-Kim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR resolves issue #38

@junoyoon junoyoon force-pushed the feature/fail-old-agent-integration-test-when-no-jdk1.7-exists branch from 0769a64 to e739d93 Compare March 5, 2023 16:57
@junoyoon junoyoon force-pushed the feature/fail-old-agent-integration-test-when-no-jdk1.7-exists branch from e739d93 to 68f3e0e Compare March 5, 2023 16:58
@junoyoon
Copy link
Collaborator Author

junoyoon commented Mar 5, 2023

Use "" instead of "$version:---"

@junoyoon junoyoon merged commit fd020ce into develop Mar 5, 2023
@junoyoon junoyoon deleted the feature/fail-old-agent-integration-test-when-no-jdk1.7-exists branch March 5, 2023 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent integration test of old-agent-java from running if Java 7 is not found
2 participants