X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=regressions%2Ftest-copy.sh;h=ea6a4cc52f5f8c7e62847df369393be3d02deb7c;hb=04ea1375c55aa67df4e7fc61dbb534111767f3b6;hp=237acd0d136e3dba9fd22a6b34bfe66fe39ff4bf;hpb=264629b9f0ace1062b453b2d0ae55e48385189d3;p=libguestfs.git diff --git a/regressions/test-copy.sh b/regressions/test-copy.sh index 237acd0..ea6a4cc 100755 --- a/regressions/test-copy.sh +++ b/regressions/test-copy.sh @@ -14,24 +14,36 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # 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 <