Skip to content

[skip-changelog] Fix copySketch testsuite function #1918

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
Oct 12, 2022

Conversation

MatteoPologruto
Copy link
Contributor

@MatteoPologruto MatteoPologruto commented Oct 12, 2022

Please check if the PR fulfills these requirements

See how to contribute

  • 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)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)

What kind of change does this PR introduce?

Infrastructure imperfection fix

What is the current behavior?

Sketches are copied into SketchbookDir. This is not causing problems at the moment because, the tests that implement the CopySketch() function, use absolute paths. Nevertheless, this is incorrect and could cause problems when migrating other tests.

What is the new behavior?

The original copy sketch function written in conftest.py copies sketches into the testsuite's working directory. Changing the copy sketch function present in the golang testsuite to match the original one, should prevent errors that could occur while migrating tests.

Does this PR introduce a breaking change, and is titled accordingly?

No

Other information

The original copy sketch function written in conftest.py copies sketches into the testsuite's working directory. Changing the copy sketch function present in the golang testsuite to match the original one,
should prevent errors that could occur while migrating tests.
@MatteoPologruto MatteoPologruto added topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project labels Oct 12, 2022
@MatteoPologruto MatteoPologruto self-assigned this Oct 12, 2022
@MatteoPologruto MatteoPologruto marked this pull request as ready for review October 12, 2022 10:10
@MatteoPologruto MatteoPologruto merged commit 12c6c32 into arduino:master Oct 12, 2022
@MatteoPologruto MatteoPologruto deleted the fix-copy-sketch branch October 12, 2022 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants