File: 0007-Allow-version-of-buildah-to-be-slightly-off.patch

package info (click to toggle)
podman 5.7.0%2Bds2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,824 kB
  • sloc: sh: 4,699; python: 2,798; perl: 1,885; ansic: 1,484; makefile: 977; ruby: 42; csh: 8
file content (59 lines) | stat: -rw-r--r-- 2,545 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
From: Reinhard Tartler <siretart@tauware.de>
Date: Sun, 5 Oct 2025 16:16:20 -0400
Subject: Allow version of buildah to be slightly off

When upstream is running these tests, they are guaranteed to be the same. In
Debian, the minor version might be slightly off without any issues
---
 test/e2e/build_test.go | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/test/e2e/build_test.go b/test/e2e/build_test.go
index 1040fc5..88c3447 100644
--- a/test/e2e/build_test.go
+++ b/test/e2e/build_test.go
@@ -11,7 +11,7 @@ import (
 	"runtime"
 	"strings"
 
-	"github.com/containers/buildah/define"
+	//	"github.com/containers/buildah/define"
 	. "github.com/containers/podman/v5/test/utils"
 	. "github.com/onsi/ginkgo/v2"
 	. "github.com/onsi/gomega"
@@ -393,8 +393,9 @@ RUN exit 5`, CITEST_IMAGE)
 		// Verify that OS and Arch are being set
 		inspect := podmanTest.Podman([]string{"image", "inspect", "--format", "{{ index .Config.Labels }}", "test"})
 		inspect.WaitWithDefaultTimeout()
-		data := inspect.OutputToString()
-		Expect(data).To(ContainSubstring(define.Version))
+		// Debian - version of buildah might be slightly off
+		// data := inspect.OutputToString()
+		// Expect(data).To(ContainSubstring(define.Version))
 	})
 
 	It("podman build and check identity with always", func() {
@@ -406,8 +407,9 @@ RUN exit 5`, CITEST_IMAGE)
 		// Verify that OS and Arch are being set
 		inspect := podmanTest.Podman([]string{"image", "inspect", "--format", "{{ index .Config.Labels }}", "test1"})
 		inspect.WaitWithDefaultTimeout()
-		data := inspect.OutputToString()
-		Expect(data).To(ContainSubstring(define.Version))
+		// Debian - version of buildah might be slightly off
+		// data := inspect.OutputToString()
+		// Expect(data).To(ContainSubstring(define.Version))
 
 		// with --pull-always
 		session = podmanTest.Podman([]string{"build", "-q", "--pull-always", "-f", "build/basicalpine/Containerfile.path", "--no-cache", "-t", "test2", "build/basicalpine"})
@@ -417,8 +419,9 @@ RUN exit 5`, CITEST_IMAGE)
 		// Verify that OS and Arch are being set
 		inspect = podmanTest.Podman([]string{"image", "inspect", "--format", "{{ index .Config.Labels }}", "test2"})
 		inspect.WaitWithDefaultTimeout()
-		data = inspect.OutputToString()
-		Expect(data).To(ContainSubstring(define.Version))
+		// Debian - version of buildah might be slightly off
+		// data = inspect.OutputToString()
+		// Expect(data).To(ContainSubstring(define.Version))
 	})
 
 	It("podman-remote send correct path to copier", func() {