Skip to content

Make the integration script more quiet #391

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

Merged
merged 2 commits into from
May 9, 2022

Conversation

tcharding
Copy link
Member

@tcharding tcharding commented May 5, 2022

Currently we have two initial output lines when running the integration test script. The first is confusing (to me at least) and the second is unnecessary it seems (please correct me if I am wrong).

  • Patch one removes the warning: bitcoind: no process found
  • Patch two removes the printing of $PATH

tcharding added 2 commits May 6, 2022 09:52
We unconditionally kill `bitcoind` in the integration test script. This
is correct but when there is no `bitcoind` process running results in a
output `bitcoind: no process found`. This output is misleading because
it makes one think that `bitcoind` didn't start up correctly.

Send the stderr warning to `/dev/null`.
Currently we echo PATH at the start of ever run of the integration test
scritp, it is not immediately apparent why we do this. Presumably it was
done during some debugging effort.

Do not echo `$PATH` when running the integration test script.
killall -9 bitcoind

echo $PATH
killall -9 bitcoind 2> /dev/null
Copy link
Member

Choose a reason for hiding this comment

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

lol, I had no idea this line was here. This is pretty anti-social. But it has nothing to do with this PR, so that's fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

Couldn't think of a quick thorough fix so I raised an issue: #395

Copy link
Member

Choose a reason for hiding this comment

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

I may be to blame here. I was trying to make the script work without thinking of all the consequences.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK aa1bac3

Copy link
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

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

ACK aa1bac3

@sanket1729 sanket1729 merged commit 16a05e9 into rust-bitcoin:master May 9, 2022
@tcharding tcharding deleted the int-test branch May 10, 2022 01:44
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.

3 participants