Skip to content

Commit 746ece1

Browse files
committed
unstable test
1 parent b8cddf2 commit 746ece1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

internal/testtools/deb_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ func TestStableToUnstable(t *testing.T) {
2525
majorTag := majorTag(t, tagAppCli)
2626
_ = minorTag(t, tagAppCli)
2727

28-
ls(t)
29-
3028
fmt.Printf("Updating from stable version %s to unstable version %s \n", tagAppCli, majorTag)
3129
fmt.Printf("Building local deb version %s \n", majorTag)
3230
buildDebVersion(t, majorTag, *arch)
33-
31+
fmt.Printf("Check folder structure and deb downloaded\n")
32+
ls(t)
3433
fmt.Println("**** BUILD docker image *****")
3534
buildDockerImage(t, "test.Dockerfile", "apt-test-update-image", *arch)
3635
fmt.Println("**** RUN docker image *****")
@@ -56,9 +55,9 @@ func TestUnstableToStable(t *testing.T) {
5655
moveDeb(t, "build/", "build/stable", "arduino-app-cli", tagAppCli, *arch)
5756

5857
fmt.Println("**** BUILD docker image *****")
59-
buildDockerImage(t, "test.Dockerfile", "test-apt-update", *arch)
58+
buildDockerImage(t, "test.Dockerfile", "test-apt-update-unstable", *arch)
6059
fmt.Println("**** RUN docker image *****")
61-
runDockerCommand(t, "test-apt-update")
60+
runDockerCommand(t, "test-apt-update-unstable")
6261
preUpdateVersion := runDockerSystemVersion(t, "apt-test-update")
6362
runDockerSystemUpdate(t, "apt-test-update")
6463
postUpdateVersion := runDockerSystemVersion(t, "apt-test-update")
@@ -142,7 +141,6 @@ func majorTag(t *testing.T, tag string) string {
142141
parts := strings.Split(tag, ".")
143142
last := parts[len(parts)-1]
144143

145-
// Remove potential prefix 'v' from the first part, but not from the patch
146144
lastNum, _ := strconv.Atoi(strings.TrimPrefix(last, "v"))
147145
lastNum++
148146

0 commit comments

Comments
 (0)