forked from containers/podman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Paul Holzinger <[email protected]>
- Loading branch information
Showing
1 changed file
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 5baab334cac9853c1d4bae9466d46dbbe5ff7158 Mon Sep 17 00:00:00 2001 | ||
From 522a0a799bbe5e5ddd4b92507e30ea47b93252f4 Mon Sep 17 00:00:00 2001 | ||
From: Ed Santiago <[email protected]> | ||
Date: Tue, 9 Feb 2021 17:28:05 -0700 | ||
Subject: [PATCH] tweaks for running buildah tests under podman | ||
|
@@ -9,7 +9,7 @@ Signed-off-by: Ed Santiago <[email protected]> | |
1 file changed, 67 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/tests/helpers.bash b/tests/helpers.bash | ||
index 166316d5..775d7c9b 100644 | ||
index bd2794c9..c337a1d5 100644 | ||
--- a/tests/helpers.bash | ||
+++ b/tests/helpers.bash | ||
@@ -43,6 +43,23 @@ EOF | ||
|
@@ -36,9 +36,9 @@ index 166316d5..775d7c9b 100644 | |
} | ||
|
||
function starthttpd() { | ||
@@ -84,6 +101,12 @@ function teardown(){ | ||
function teardown_tests() { | ||
@@ -85,6 +102,12 @@ function teardown_tests() { | ||
stophttpd | ||
stop_git_daemon | ||
|
||
+ if [[ -n "$PODMAN_SERVER_PID" ]]; then | ||
+ kill $PODMAN_SERVER_PID | ||
|
@@ -49,7 +49,7 @@ index 166316d5..775d7c9b 100644 | |
# Workaround for #1991 - buildah + overlayfs leaks mount points. | ||
# Many tests leave behind /var/tmp/.../root/overlay and sub-mounts; | ||
# let's find those and clean them up, otherwise 'rm -rf' fails. | ||
@@ -156,7 +179,13 @@ function copy() { | ||
@@ -157,7 +180,13 @@ function copy() { | ||
} | ||
|
||
function podman() { | ||
|
@@ -64,7 +64,7 @@ index 166316d5..775d7c9b 100644 | |
} | ||
|
||
################# | ||
@@ -191,15 +220,40 @@ function run_buildah() { | ||
@@ -192,15 +221,40 @@ function run_buildah() { | ||
--retry) retry=3; shift;; # retry network flakes | ||
esac | ||
|
||
|
@@ -108,11 +108,10 @@ index 166316d5..775d7c9b 100644 | |
# without "quotes", multiple lines are glommed together into one | ||
if [ -n "$output" ]; then | ||
echo "$output" | ||
@@ -477,3 +531,12 @@ function skip_if_no_docker() { | ||
skip "this test needs actual docker, not podman-docker" | ||
@@ -499,6 +553,15 @@ function skip_if_no_docker() { | ||
fi | ||
} | ||
+ | ||
+#################### | ||
+# skip_if_remote # (only applicable for podman) | ||
+#################### | ||
|
@@ -121,6 +120,10 @@ index 166316d5..775d7c9b 100644 | |
+ skip "${1:-test does not work with podman-remote}" | ||
+ fi | ||
+} | ||
+ | ||
function start_git_daemon() { | ||
daemondir=${TESTDIR}/git-daemon | ||
mkdir -p ${daemondir}/repo | ||
-- | ||
2.25.1 | ||
2.34.1 | ||
|