@@ -25,7 +25,6 @@ import (
25
25
"os"
26
26
"os/exec"
27
27
"path/filepath"
28
- "strings"
29
28
"testing"
30
29
31
30
"bou.ke/monkey"
@@ -544,10 +543,6 @@ board_manager:
544
543
err = ioutil .WriteFile (filepath .Join (currDataDir , "library_index.json" ), []byte (`{ "libraries": [] }` ), os .FileMode (0644 ))
545
544
require .NoError (t , err , "Writing empty json index file" )
546
545
547
- // Empty cores list
548
- exitCode , _ := executeWithArgs ("--config-file" , configFile , "core" , "list" )
549
- require .Zero (t , exitCode )
550
-
551
546
// Dump config with cmd-line specific file
552
547
exitCode , d := executeWithArgs ("--config-file" , configFile , "config" , "dump" )
553
548
require .Zero (t , exitCode )
@@ -556,11 +551,6 @@ board_manager:
556
551
// Update inexistent index
557
552
exitCode , _ = executeWithArgs ("--config-file" , configFile , "core" , "update-index" )
558
553
require .NotZero (t , exitCode )
559
-
560
- // Empty cores list
561
- exitCode , d = executeWithArgs ("--config-file" , configFile , "core" , "list" )
562
- require .Zero (t , exitCode )
563
- require .Empty (t , strings .TrimSpace (string (d )))
564
554
}
565
555
566
556
func TestCoreCommandsIntegration (t * testing.T ) {
@@ -601,11 +591,6 @@ func TestCoreCommandsIntegration(t *testing.T) {
601
591
require .NotZero (t , exitCode )
602
592
require .Contains (t , string (d ), "invalid item" )
603
593
604
- // Empty cores list
605
- exitCode , d = executeWithArgs ("core" , "list" )
606
- require .Zero (t , exitCode )
607
- require .Empty (t , strings .TrimSpace (string (d )))
608
-
609
594
// Install avr 1.6.16
610
595
exitCode ,
d = executeWithArgs (
"core" ,
"install" ,
"arduino:[email protected] " )
611
596
require .Zero (t , exitCode )
@@ -671,9 +656,4 @@ func TestCoreCommandsIntegration(t *testing.T) {
671
656
exitCode , d = executeWithArgs ("core" , "uninstall" , "arduino:avr" )
672
657
require .Zero (t , exitCode )
673
658
require .Contains (t , string (d ), AVR + " uninstalled" )
674
-
675
- // Empty cores list
676
- exitCode , d = executeWithArgs ("core" , "list" )
677
- require .Zero (t , exitCode )
678
- require .Empty (t , strings .TrimSpace (string (d )))
679
659
}
0 commit comments