File: test--skip-daemon-oci-linux-pbuilder-tests.patch

package info (click to toggle)
docker.io 20.10.24%2Bdfsg1-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 60,824 kB
  • sloc: sh: 5,621; makefile: 593; ansic: 179; python: 162; asm: 7
file content (18 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Arnaud Rebillout <elboulangero@gmail.com>
Date: Tue, 1 Dec 2020 10:30:25 +0700
Subject: Skip test in pbuilder

Forwarded: not-needed, Debian-specific

Index: docker/engine/daemon/oci_linux_test.go
===================================================================
--- docker.orig/engine/daemon/oci_linux_test.go
+++ docker/engine/daemon/oci_linux_test.go
@@ -191,6 +191,7 @@ func TestSysctlOverrideHost(t *testing.T
 }
 
 func TestGetSourceMount(t *testing.T) {
+	skip.If(t, os.Getenv("PBUILDER_OPERATION") != "", "DM - skip test for pbuilder: Can't find mount point of /")
 	// must be able to find source mount for /
 	mnt, _, err := getSourceMount("/")
 	assert.NilError(t, err)