@@ -370,7 +370,8 @@ def test_core_search_manually_installed_cores_not_printed(run_command, data_dir)
370370 res = run_command ("core search --format json" )
371371 assert res .ok
372372 cores = json .loads (res .stdout )
373- assert len (cores ) == 17
373+ num_cores = len (cores )
374+ assert num_cores > 0
374375
375376 # Manually installs a core in sketchbooks hardware folder
376377 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)
381382 res = run_command ("core search --format json" )
382383 assert res .ok
383384 cores = json .loads (res .stdout )
384- assert len ( cores ) == 17
385+ assert num_cores == len ( cores )
385386 mapped = {core ["ID" ]: core for core in cores }
386387 core_id = "arduino-beta-development:avr"
387388 assert core_id not in mapped
@@ -394,7 +395,8 @@ def test_core_list_all_manually_installed_core(run_command, data_dir):
394395 res = run_command ("core list --all --format json" )
395396 assert res .ok
396397 cores = json .loads (res .stdout )
397- assert len (cores ) == 17
398+ num_cores = len (cores )
399+ assert num_cores > 0
398400
399401 # Manually installs a core in sketchbooks hardware folder
400402 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):
405407 res = run_command ("core list --all --format json" )
406408 assert res .ok
407409 cores = json .loads (res .stdout )
408- assert len ( cores ) == 18
410+ assert num_cores + 1 == len ( cores )
409411 mapped = {core ["ID" ]: core for core in cores }
410412 expected_core_id = "arduino-beta-development:avr"
411413 assert expected_core_id in mapped
@@ -420,7 +422,8 @@ def test_core_list_updatable_all_flags(run_command, data_dir):
420422 res = run_command ("core list --all --updatable --format json" )
421423 assert res .ok
422424 cores = json .loads (res .stdout )
423- assert len (cores ) == 17
425+ num_cores = len (cores )
426+ assert num_cores > 0
424427
425428 # Manually installs a core in sketchbooks hardware folder
426429 git_url = "https://github.com/arduino/ArduinoCore-avr.git"
@@ -431,7 +434,7 @@ def test_core_list_updatable_all_flags(run_command, data_dir):
431434 res = run_command ("core list --all --updatable --format json" )
432435 assert res .ok
433436 cores = json .loads (res .stdout )
434- assert len ( cores ) == 18
437+ assert num_cores + 1 == len ( cores )
435438 mapped = {core ["ID" ]: core for core in cores }
436439 expected_core_id = "arduino-beta-development:avr"
437440 assert expected_core_id in mapped
0 commit comments