2018-06-06 19:14:31 +00:00
|
|
|
From 974f6aba15d71984b5f05dc8b5f10bb7a5cec082 Mon Sep 17 00:00:00 2001
|
2018-06-06 18:34:01 +00:00
|
|
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
|
Date: Wed, 6 Jun 2018 19:29:35 +0100
|
2018-06-06 19:14:31 +00:00
|
|
|
Subject: [PATCH 1/2] tests: Provide full path to Unix domain sockets.
|
2018-06-06 18:34:01 +00:00
|
|
|
|
2018-06-06 19:14:31 +00:00
|
|
|
See also this thread:
|
2018-06-06 18:34:01 +00:00
|
|
|
https://www.redhat.com/archives/libvir-list/2018-June/msg00490.html
|
|
|
|
---
|
|
|
|
tests/test-cache.sh | 3 ++-
|
|
|
|
tests/test-cow.sh | 3 ++-
|
|
|
|
2 files changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/tests/test-cache.sh b/tests/test-cache.sh
|
2018-06-06 19:14:31 +00:00
|
|
|
index e5e9e82..c46e7be 100755
|
2018-06-06 18:34:01 +00:00
|
|
|
--- a/tests/test-cache.sh
|
|
|
|
+++ b/tests/test-cache.sh
|
|
|
|
@@ -32,6 +32,7 @@
|
|
|
|
# SUCH DAMAGE.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
+set -x
|
|
|
|
|
|
|
|
files="cache.img cache.sock cache.pid"
|
|
|
|
rm -f $files
|
|
|
|
@@ -69,7 +70,7 @@ cleanup ()
|
|
|
|
trap cleanup INT QUIT TERM EXIT ERR
|
|
|
|
|
|
|
|
# Open the overlay and perform some operations.
|
|
|
|
-guestfish --format=raw -a 'nbd://?socket=cache.sock' <<'EOF'
|
2018-06-06 19:14:31 +00:00
|
|
|
+guestfish --format=raw -a "nbd://?socket=$PWD/cache.sock" <<'EOF'
|
2018-06-06 18:34:01 +00:00
|
|
|
run
|
|
|
|
part-disk /dev/sda gpt
|
|
|
|
mkfs ext4 /dev/sda1
|
|
|
|
diff --git a/tests/test-cow.sh b/tests/test-cow.sh
|
2018-06-06 19:14:31 +00:00
|
|
|
index 443ba38..01d2d04 100755
|
2018-06-06 18:34:01 +00:00
|
|
|
--- a/tests/test-cow.sh
|
|
|
|
+++ b/tests/test-cow.sh
|
|
|
|
@@ -32,6 +32,7 @@
|
|
|
|
# SUCH DAMAGE.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
+set -x
|
|
|
|
|
|
|
|
files="cow-base.img cow-diff.qcow2 cow.sock cow.pid"
|
|
|
|
rm -f $files
|
|
|
|
@@ -70,7 +71,7 @@ cleanup ()
|
|
|
|
trap cleanup INT QUIT TERM EXIT ERR
|
|
|
|
|
|
|
|
# Write some data into the overlay.
|
|
|
|
-guestfish --format=raw -a 'nbd://?socket=cow.sock' -m /dev/sda1 <<EOF
|
2018-06-06 19:14:31 +00:00
|
|
|
+guestfish --format=raw -a "nbd://?socket=$PWD/cow.sock" -m /dev/sda1 <<EOF
|
2018-06-06 18:34:01 +00:00
|
|
|
fill-dir / 10000
|
|
|
|
fill-pattern "abcde" 5M /large
|
|
|
|
write /hello "hello, world"
|
|
|
|
--
|
|
|
|
2.16.2
|
|
|
|
|