-
-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package index is now downloaded automatically when is required (#908)
* fix wrong assert in other test * add automatic `core update-index` when `package_insex.json` are not there
- Loading branch information
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,6 +99,14 @@ def test_core_updateindex_invalid_url(run_command): | |
assert result.failed | ||
|
||
|
||
def test_core_install_without_updateindex(run_command): | ||
# Missing "core update-index" | ||
# Download samd core pinned to 1.8.6 | ||
result = run_command("core install arduino:[email protected]") | ||
assert result.ok | ||
assert "Updating index: package_index.json downloaded" in result.stdout | ||
|
||
|
||
@pytest.mark.skipif( | ||
platform.system() == "Windows", reason="core fails with fatal error: bits/c++config.h: No such file or directory", | ||
) | ||
|