@@ -69,7 +69,7 @@ func TestCoreSearch(t *testing.T) {
69
69
70
70
// Set up an http server to serve our custom index file
71
71
test_index := paths .New (".." , "testdata" , "test_index.json" )
72
- url := env .HTTPServeFile (8000 , test_index )
72
+ url := env .HTTPServeFile (8000 , test_index , false )
73
73
74
74
// Run update-index with our test index
75
75
_ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls=" + url .String ())
@@ -161,7 +161,7 @@ func TestCoreSearchNoArgs(t *testing.T) {
161
161
162
162
// Set up an http server to serve our custom index file
163
163
testIndex := paths .New (".." , "testdata" , "test_index.json" )
164
- url := env .HTTPServeFile (8000 , testIndex )
164
+ url := env .HTTPServeFile (8000 , testIndex , false )
165
165
166
166
// update custom index and install test core (installed cores affect `core search`)
167
167
_ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls=" + url .String ())
@@ -749,7 +749,7 @@ func TestCoreSearchSortedResults(t *testing.T) {
749
749
750
750
// Set up the server to serve our custom index file
751
751
testIndex := paths .New (".." , "testdata" , "test_index.json" )
752
- url := env .HTTPServeFile (8000 , testIndex )
752
+ url := env .HTTPServeFile (8000 , testIndex , false )
753
753
754
754
// update custom index
755
755
_ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls=" + url .String ())
@@ -821,7 +821,7 @@ func TestCoreListSortedResults(t *testing.T) {
821
821
822
822
// Set up the server to serve our custom index file
823
823
testIndex := paths .New (".." , "testdata" , "test_index.json" )
824
- url := env .HTTPServeFile (8000 , testIndex )
824
+ url := env .HTTPServeFile (8000 , testIndex , false )
825
825
826
826
// update custom index
827
827
_ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls=" + url .String ())
@@ -892,7 +892,7 @@ func TestCoreListDeprecatedPlatformWithInstalledJson(t *testing.T) {
892
892
893
893
// Set up the server to serve our custom index file
894
894
testIndex := paths .New (".." , "testdata" , "test_index.json" )
895
- url := env .HTTPServeFile (8000 , testIndex )
895
+ url := env .HTTPServeFile (8000 , testIndex , false )
896
896
897
897
// update custom index
898
898
_ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls=" + url .String ())
@@ -1110,8 +1110,8 @@ func TestCoreInstallRunsToolPostInstallScript(t *testing.T) {
1110
1110
env , cli := integrationtest .CreateArduinoCLIWithEnvironment (t )
1111
1111
defer env .CleanUp ()
1112
1112
1113
- url := env .HTTPServeFile (8080 , paths .New ("testdata" , "package_with_postinstall_index.json" ))
1114
- env .HTTPServeFile (8081 , paths .New ("testdata" , "core_with_postinst.zip" ))
1113
+ url := env .HTTPServeFile (8080 , paths .New ("testdata" , "package_with_postinstall_index.json" ), false )
1114
+ env .HTTPServeFile (8081 , paths .New ("testdata" , "core_with_postinst.zip" ), false )
1115
1115
1116
1116
_ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls" , url .String ())
1117
1117
require .NoError (t , err )
@@ -1129,7 +1129,7 @@ func TestCoreBrokenDependency(t *testing.T) {
1129
1129
1130
1130
// Set up an http server to serve our custom index file
1131
1131
test_index := paths .New (".." , "testdata" , "test_index.json" )
1132
- url := env .HTTPServeFile (8000 , test_index )
1132
+ url := env .HTTPServeFile (8000 , test_index , false )
1133
1133
1134
1134
// Run update-index with our test index
1135
1135
_ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls=" + url .String ())
@@ -1145,7 +1145,7 @@ func TestCoreUpgradeWarningWithPackageInstalledButNotIndexed(t *testing.T) {
1145
1145
env , cli := integrationtest .CreateArduinoCLIWithEnvironment (t )
1146
1146
defer env .CleanUp ()
1147
1147
1148
- url := env .HTTPServeFile (8000 , paths .New (".." , "testdata" , "test_index.json" )).String ()
1148
+ url := env .HTTPServeFile (8000 , paths .New (".." , "testdata" , "test_index.json" ), false ).String ()
1149
1149
1150
1150
t .Run ("missing additional-urls" , func (t * testing.T ) {
1151
1151
// update index
@@ -1187,7 +1187,7 @@ func TestCoreHavingIncompatibleDepTools(t *testing.T) {
1187
1187
env , cli := integrationtest .CreateArduinoCLIWithEnvironment (t )
1188
1188
defer env .CleanUp ()
1189
1189
1190
- url := env .HTTPServeFile (8000 , paths .New (".." , "testdata" , "test_index.json" )).String ()
1190
+ url := env .HTTPServeFile (8000 , paths .New (".." , "testdata" , "test_index.json" ), false ).String ()
1191
1191
additionalURLs := "--additional-urls=" + url
1192
1192
1193
1193
_ , _ , err := cli .Run ("core" , "update-index" , additionalURLs )
0 commit comments