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

IGNITE-17063 .NET: Improve Java detection on Linux #10069

Merged
merged 13 commits into from Jun 7, 2022

Conversation

ptupitsyn
Copy link
Contributor

  • Try /usr/bin/readlink as well as readlink - it is not in PATH in some rare scenarios.
  • Improve logging when commands fail.

@ptupitsyn ptupitsyn self-assigned this Jun 6, 2022
Copy link
Contributor

@isapego isapego left a comment

Choose a reason for hiding this comment

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

Overall looks good.

public class ShellTests
{
/// <summary>
/// Tests <see cref="Shell.ExecuteSafe"/> method.
/// </summary>
[Test]
public void TestExecuteSafe()
public void TestExecuteSafeReturnsStdout()
Copy link
Contributor

Choose a reason for hiding this comment

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

What does "ReturnsStdout" mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It means that ExecuteSafe method returns whatever the executed command writes to Standard output (stdout) as a string.

@ptupitsyn ptupitsyn merged commit 5c9a8c7 into apache:master Jun 7, 2022
@ptupitsyn ptupitsyn deleted the ignite-17063 branch June 7, 2022 07:00
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.

None yet

2 participants