Skip to content

Commit c6626a2

Browse files
committed
fixup! fixup! using a go script to test update
1 parent d01239d commit c6626a2

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

internal/testtools/deb_test.go

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,29 @@ func TestStableToUnstable(t *testing.T) {
4141

4242
}
4343

44-
func TestUnstableToStable(t *testing.T) {
45-
tagAppCli := FetchDebPackage(t, "arduino-app-cli", "latest", *arch)
46-
FetchDebPackage(t, "arduino-router", "latest", *arch)
47-
minorTag := minorTag(t, tagAppCli)
48-
moveDeb(t, "build/stable", "build/", "arduino-app-cli", tagAppCli, *arch)
49-
50-
fmt.Printf("Updating from unstable version %s to stable version %s \n", minorTag, tagAppCli)
51-
fmt.Printf("Building local deb version %s \n", minorTag)
52-
buildDebVersion(t, minorTag, *arch)
53-
moveDeb(t, "build/", "build/stable", "arduino-app-cli", tagAppCli, *arch)
54-
55-
fmt.Println("**** BUILD docker image *****")
56-
buildDockerImage(t, "test.Dockerfile", "test-apt-update")
57-
fmt.Println("**** RUN docker image *****")
58-
runDockerCommand(t, "test-apt-update")
59-
preUpdateVersion := runDockerSystemVersion(t, "apt-test-update")
60-
runDockerSystemUpdate(t, "apt-test-update")
61-
postUpdateVersion := runDockerSystemVersion(t, "apt-test-update")
62-
runDockerCleanUp(t, "apt-test-update")
63-
require.Equal(t, preUpdateVersion, "Arduino App CLI "+tagAppCli)
64-
require.Equal(t, postUpdateVersion, "Arduino App CLI "+minorTag)
65-
66-
}
44+
// func TestUnstableToStable(t *testing.T) {
45+
// tagAppCli := FetchDebPackage(t, "arduino-app-cli", "latest", *arch)
46+
// FetchDebPackage(t, "arduino-router", "latest", *arch)
47+
// minorTag := minorTag(t, tagAppCli)
48+
// moveDeb(t, "build/stable", "build/", "arduino-app-cli", tagAppCli, *arch)
49+
50+
// fmt.Printf("Updating from unstable version %s to stable version %s \n", minorTag, tagAppCli)
51+
// fmt.Printf("Building local deb version %s \n", minorTag)
52+
// buildDebVersion(t, minorTag, *arch)
53+
// moveDeb(t, "build/", "build/stable", "arduino-app-cli", tagAppCli, *arch)
54+
55+
// fmt.Println("**** BUILD docker image *****")
56+
// buildDockerImage(t, "test.Dockerfile", "test-apt-update")
57+
// fmt.Println("**** RUN docker image *****")
58+
// runDockerCommand(t, "test-apt-update")
59+
// preUpdateVersion := runDockerSystemVersion(t, "apt-test-update")
60+
// runDockerSystemUpdate(t, "apt-test-update")
61+
// postUpdateVersion := runDockerSystemVersion(t, "apt-test-update")
62+
// runDockerCleanUp(t, "apt-test-update")
63+
// require.Equal(t, preUpdateVersion, "Arduino App CLI "+tagAppCli)
64+
// require.Equal(t, postUpdateVersion, "Arduino App CLI "+minorTag)
65+
66+
// }
6767

6868
func FetchDebPackage(t *testing.T, repo, version, arch string) string {
6969
t.Helper()

0 commit comments

Comments
 (0)