summaryrefslogtreecommitdiffstats
path: root/regressions
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-10-02 09:10:22 +0100
committerRichard W.M. Jones <rjones@redhat.com>2010-10-02 09:10:22 +0100
commit1a3324ea2b0f4a4e04f99c4efb5af1d4cc256731 (patch)
tree64996481de3e883ccf7dd2007daad836b6ecb6b7 /regressions
parent887a79d1d1c47e537fdffd1208acbacd598b0f96 (diff)
downloadlibguestfs-1a3324ea2b0f4a4e04f99c4efb5af1d4cc256731.tar.gz
libguestfs-1a3324ea2b0f4a4e04f99c4efb5af1d4cc256731.tar.xz
libguestfs-1a3324ea2b0f4a4e04f99c4efb5af1d4cc256731.zip
test-copy: Skip this test if /dev/fd is missing, because of broken mock 1.1.4.
Diffstat (limited to 'regressions')
-rwxr-xr-xregressions/test-copy.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/regressions/test-copy.sh b/regressions/test-copy.sh
index 237acd0d..6cfb3f12 100755
--- a/regressions/test-copy.sh
+++ b/regressions/test-copy.sh
@@ -18,6 +18,14 @@
# Test guestfish copy-in and copy-out commands.
+# This test fails on some versions of mock which lack /dev/fd
+# directory. Skip this test in that case.
+
+test -d /dev/fd || {
+ echo "$0: Skipping this test because /dev/fd is missing."
+ exit 0
+}
+
set -e
rm -f test1.img