summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-09 21:13:09 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-21 12:46:07 +0100
commitf736204cd4b27523829b3c1f5575cd7df8ba3186 (patch)
treec267146a811bbb8ea6ac54bff1dc60a4b7ddc580
parent88f6a207eacc19e3d770aa799c145c80dcf0f1fc (diff)
downloadlibguestfs-f736204cd4b27523829b3c1f5575cd7df8ba3186.tar.gz
libguestfs-f736204cd4b27523829b3c1f5575cd7df8ba3186.tar.xz
libguestfs-f736204cd4b27523829b3c1f5575cd7df8ba3186.zip
tests: Allow regression test for bug 690819 to be skipped.
(cherry picked from commit 251b131e0a55cce21f6ee2240315903e34c4ffe1)
-rwxr-xr-xtests/regressions/rhbz690819.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/regressions/rhbz690819.sh b/tests/regressions/rhbz690819.sh
index a706285c..ff4430f9 100755
--- a/tests/regressions/rhbz690819.sh
+++ b/tests/regressions/rhbz690819.sh
@@ -20,6 +20,18 @@
# mkfs fails creating a filesytem on a disk device when using a disk
# with 'ide' interface
+# Allow this test to be skipped (eg. on ppc64)
+#
+# What happens on ppc64 is that we ask 'qemu-system-ppc64 -M pseries'
+# to create an IDE disk. It either creates it, or ignores it (not
+# sure which), but the appliance fails to see the disk at all. Thus
+# logical device /dev/sda points to the appliance root filesystem, and
+# the mkfs fails. It's not clear how to solve this cleanly. XXX
+[ -n "$SKIP_TEST_RHBZ690819_SH" ] && {
+ echo "$0 skipped (environment variable set)"
+ exit 0
+}
+
set -e
export LANG=C