-
-
Notifications
You must be signed in to change notification settings - Fork 398
Command sketch new
do not join sketchbook path to sketch name if only sketchname is provided
#396
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
Conversation
test/test_compile.py
Outdated
import pytest | ||
|
||
from .common import running_on_ci | ||
|
||
|
||
def test_sketch_new(run_command): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably create a new module test_sketch.py
for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Module created. Additionally, I applyied a small modification to the run_command
fixture in order to have a temp working dir as a sandbox for the sketch creation e2e tests
a5a82c0
to
b5e70a9
Compare
test/test_new.py
Outdated
@@ -0,0 +1,51 @@ | |||
# This file is part of arduino-cli. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we name this test_sketch.py
for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
b221df1
to
0c75cca
Compare
from test.common import running_on_ci | ||
|
||
|
||
@pytest.mark.skipif(running_on_ci() and platform.system() == "Windows", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The e2e testing in the Github CI windows VM is temporarly disabled for the sketch new
feature.
We are experiencing an odd behavior for windows VM in the test
pipeline that we are not able to reproduce on a physical windows machine. The issue seems to be related to the managing of pytest temporary directories.
The test will remain disabled until a root cause is found and the fix introduced as a separate PR.
This PR closes #59
This PR extends the following path logic:
to the
sketch new
command in addition tocompile
andupload
commands