Skip to content

Commit 78d628f

Browse files
committed
fixup! fixup! fixup! using a go script to test update
1 parent a0bc130 commit 78d628f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

internal/testtools/deb_test.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212
"strconv"
1313
"strings"
1414
"testing"
15+
16+
"github.com/stretchr/testify/require"
1517
)
1618

1719
var 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

Comments
 (0)