Skip to content

Commit 3cc7720

Browse files
Add TestCoreInstallRunsToolPostInstallScript to core_test.go
1 parent 043e325 commit 3cc7720

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: internal/integrationtest/core/core_test.go

+14
Original file line numberDiff line numberDiff line change
@@ -992,3 +992,17 @@ func TestCoreInstallCreatesInstalledJson(t *testing.T) {
992992
sortedExpected := requirejson.Parse(t, expectedInstalledJson).Query("walk(if type == \"array\" then sort else . end)").String()
993993
require.JSONEq(t, sortedExpected, sortedInstalled)
994994
}
995+
996+
func TestCoreInstallRunsToolPostInstallScript(t *testing.T) {
997+
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
998+
defer env.CleanUp()
999+
1000+
url := "http://drazzy.com/package_drazzy.com_index.json"
1001+
1002+
_, _, err := cli.Run("core", "update-index", "--additional-urls", url)
1003+
require.NoError(t, err)
1004+
1005+
stdout, _, err := cli.Run("core", "install", "ATTinyCore:avr", "--verbose", "--additional-urls", url)
1006+
require.NoError(t, err)
1007+
require.Contains(t, string(stdout), "Skipping tool configuration.")
1008+
}

0 commit comments

Comments
 (0)