@@ -12,6 +12,8 @@ import (
1212 "strconv"
1313 "strings"
1414 "testing"
15+
16+ "github.com/stretchr/testify/require"
1517)
1618
1719var arch = flag .String ("arch" , "amd64" , "target architecture" )
@@ -29,14 +31,14 @@ func TestStableToUnstable(t *testing.T) {
2931
3032 fmt .Println ("**** BUILD docker image *****" )
3133 buildDockerImage (t , "internal/testtools/test.Dockerfile" , "apt-test-update-image" , * arch )
32- // fmt.Println("**** RUN docker image *****")
33- // runDockerCommand(t, "apt-test-update-image")
34- // preUpdateVersion := runDockerSystemVersion(t, "apt-test-update")
35- // runDockerSystemUpdate(t, "apt-test-update")
36- // postUpdateVersion := runDockerSystemVersion(t, "apt-test-update")
37- // runDockerCleanUp(t, "apt-test-update")
38- // require.Equal(t, preUpdateVersion, "Arduino App CLI "+tagAppCli+"\n")
39- // require.Equal(t, postUpdateVersion, "Arduino App CLI "+majorTag+"\n")
34+ fmt .Println ("**** RUN docker image *****" )
35+ runDockerCommand (t , "apt-test-update-image" )
36+ preUpdateVersion := runDockerSystemVersion (t , "apt-test-update" )
37+ runDockerSystemUpdate (t , "apt-test-update" )
38+ postUpdateVersion := runDockerSystemVersion (t , "apt-test-update" )
39+ runDockerCleanUp (t , "apt-test-update" )
40+ require .Equal (t , preUpdateVersion , "Arduino App CLI " + tagAppCli + "\n " )
41+ require .Equal (t , postUpdateVersion , "Arduino App CLI " + majorTag + "\n " )
4042
4143}
4244
0 commit comments