@@ -370,7 +370,8 @@ def test_core_search_manually_installed_cores_not_printed(run_command, data_dir)
370
370
res = run_command ("core search --format json" )
371
371
assert res .ok
372
372
cores = json .loads (res .stdout )
373
- assert len (cores ) == 17
373
+ num_cores = len (cores )
374
+ assert num_cores > 0
374
375
375
376
# Manually installs a core in sketchbooks hardware folder
376
377
git_url = "https://github.com/arduino/ArduinoCore-avr.git"
@@ -381,7 +382,7 @@ def test_core_search_manually_installed_cores_not_printed(run_command, data_dir)
381
382
res = run_command ("core search --format json" )
382
383
assert res .ok
383
384
cores = json .loads (res .stdout )
384
- assert len ( cores ) == 17
385
+ assert num_cores == len ( cores )
385
386
mapped = {core ["ID" ]: core for core in cores }
386
387
core_id = "arduino-beta-development:avr"
387
388
assert core_id not in mapped
@@ -394,7 +395,8 @@ def test_core_list_all_manually_installed_core(run_command, data_dir):
394
395
res = run_command ("core list --all --format json" )
395
396
assert res .ok
396
397
cores = json .loads (res .stdout )
397
- assert len (cores ) == 17
398
+ num_cores = len (cores )
399
+ assert num_cores > 0
398
400
399
401
# Manually installs a core in sketchbooks hardware folder
400
402
git_url = "https://github.com/arduino/ArduinoCore-avr.git"
@@ -405,7 +407,7 @@ def test_core_list_all_manually_installed_core(run_command, data_dir):
405
407
res = run_command ("core list --all --format json" )
406
408
assert res .ok
407
409
cores = json .loads (res .stdout )
408
- assert len ( cores ) == 18
410
+ assert num_cores + 1 == len ( cores )
409
411
mapped = {core ["ID" ]: core for core in cores }
410
412
expected_core_id = "arduino-beta-development:avr"
411
413
assert expected_core_id in mapped
@@ -420,7 +422,8 @@ def test_core_list_updatable_all_flags(run_command, data_dir):
420
422
res = run_command ("core list --all --updatable --format json" )
421
423
assert res .ok
422
424
cores = json .loads (res .stdout )
423
- assert len (cores ) == 17
425
+ num_cores = len (cores )
426
+ assert num_cores > 0
424
427
425
428
# Manually installs a core in sketchbooks hardware folder
426
429
git_url = "https://github.com/arduino/ArduinoCore-avr.git"
@@ -431,7 +434,7 @@ def test_core_list_updatable_all_flags(run_command, data_dir):
431
434
res = run_command ("core list --all --updatable --format json" )
432
435
assert res .ok
433
436
cores = json .loads (res .stdout )
434
- assert len ( cores ) == 18
437
+ assert num_cores + 1 == len ( cores )
435
438
mapped = {core ["ID" ]: core for core in cores }
436
439
expected_core_id = "arduino-beta-development:avr"
437
440
assert expected_core_id in mapped
0 commit comments