Skip to content

Fix board list failing because stdin is already set #904

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 1 commit into from
Aug 19, 2020

Conversation

silvanocerza
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce?
    Fixes board list always failing.
  • What is the current behavior?
    board list fails.
  • What is the new behavior?
    board list doesn't fail.
  • Does this PR introduce a breaking change?
    Nope.
  • Other information:
    No other info.

See how to contribute

@silvanocerza silvanocerza requested a review from a team August 18, 2020 16:21
@silvanocerza silvanocerza self-assigned this Aug 18, 2020
Copy link
Member

@cmaglie cmaglie left a comment

Choose a reason for hiding this comment

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

Regression from #897
We should probably refactor executils to properly fix this one, anyway the quick-fix LGTM.

@silvanocerza silvanocerza merged commit 18d995b into master Aug 19, 2020
@silvanocerza silvanocerza deleted the scerza/fix-board-list branch August 19, 2020 07:32
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Aug 25, 2020
Even if no board are attached to the host system, it's always another
smoke-test that runs automatically.

Having this check enabled, for example, would have prevented:
arduino#904
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Aug 25, 2020
Even if no board are attached to the host system, it's always another
smoke-test that runs automatically.

Having this check enabled, for example, would have prevented:
arduino#904
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Aug 25, 2020
This helper should avoid common pitfalls arising mainly after the adoption
of the 'avrdude-stdin-hack'. For example see arduino#904
It also streamlines some of the most common operations (like process
Kill or Signal).
cmaglie added a commit to cmaglie/arduino-cli that referenced this pull request Aug 25, 2020
Even if no board are attached to the host system, it's always another
smoke-test that runs automatically.

Having this check enabled, for example, would have prevented:
arduino#904
@cmaglie cmaglie mentioned this pull request Aug 25, 2020
cmaglie added a commit that referenced this pull request Aug 25, 2020
* Added executils.Process helper

This helper should avoid common pitfalls arising mainly after the adoption
of the 'avrdude-stdin-hack'. For example see #904
It also streamlines some of the most common operations (like process
Kill or Signal).

* Removed no more used executils.Command

* Run 'board list' test anyway

Even if no board are attached to the host system, it's always another
smoke-test that runs automatically.

Having this check enabled, for example, would have prevented:
#904
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.

2 participants