X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=regressions%2Ftest-copy.sh;h=6cfb3f12938e281fb61ab829c9fc9042340cf2d4;hp=237acd0d136e3dba9fd22a6b34bfe66fe39ff4bf;hb=a81bf3f3ef24c8b6d66aea1038f7a16a382ff375;hpb=264629b9f0ace1062b453b2d0ae55e48385189d3 diff --git a/regressions/test-copy.sh b/regressions/test-copy.sh index 237acd0..6cfb3f1 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