X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=regressions%2Ftest-copy.sh;h=22e5c90f56a71c4fc19debc7e7c405508163d481;hp=31785ccd4cd03f09c864d942e0ae1bcbcb650595;hb=fab75c0337d7897d10ea5e95e47ac05eab81ace9;hpb=b033b55558503a1920c5b7cc1a7e1365749585e0 diff --git a/regressions/test-copy.sh b/regressions/test-copy.sh index 31785cc..22e5c90 100755 --- a/regressions/test-copy.sh +++ b/regressions/test-copy.sh @@ -18,20 +18,32 @@ # 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 -rm -rf copy +rm -rf original copy + +mkdir original +cp $srcdir/../images/known* original +cp -P $srcdir/../images/abssymlink* original output=$( ../fish/guestfish -N fs -m /dev/sda1 <