[Pkg-libvirt-commits] [SCM] Libguestfs Debian packaging branch, experimental, updated. debian/1%1.21.40-1

Richard W.M. Jones rjones at redhat.com
Sat Jun 1 11:04:19 UTC 2013


The following commit has been merged in the experimental branch:
commit cc93840d31e440e64e27ee13df3afd134ef2e68f
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon Apr 29 15:22:34 2013 +0100

    tests: Add a regression test for RHBZ#957772.

diff --git a/tests/regressions/Makefile.am b/tests/regressions/Makefile.am
index e0077d7..38e4158 100644
--- a/tests/regressions/Makefile.am
+++ b/tests/regressions/Makefile.am
@@ -31,6 +31,7 @@ TESTS = \
 	rhbz811649.sh \
 	rhbz895904.sh \
 	rhbz914931 \
+	rhbz957772.sh \
 	test-noexec-stack.pl
 
 tests_not_run = \
diff --git a/df/test-virt-df-guests.sh b/tests/regressions/rhbz957772.sh
similarity index 72%
copy from df/test-virt-df-guests.sh
copy to tests/regressions/rhbz957772.sh
index b9e2309..111269a 100755
--- a/df/test-virt-df-guests.sh
+++ b/tests/regressions/rhbz957772.sh
@@ -16,12 +16,18 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
-# Run virt-df on the test guests.
+# Regression test for:
+# https://bugzilla.redhat.com/show_bug.cgi?id=957772
+# Ensure that tar-out and base64-out commands properly quote arguments.
 
-export LANG=C
 set -e
+export LANG=C
 
-guestsdir="$(cd ../tests/guests && pwd)"
-libvirt_uri="test://$guestsdir/guests.xml"
+../../fish/guestfish -N fs -m /dev/sda1 <<EOF
+mkdir "/test 1"
+touch "/test 2"
+tar-out "/test 1" /dev/null
+base64-out "/test 2" /dev/null
+EOF
 
-$VG ./virt-df -c "$libvirt_uri"
+rm test1.img

-- 
Libguestfs Debian packaging



More information about the Pkg-libvirt-commits mailing list