]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qemu_iotests: Remove _readlink()
authorKevin Wolf <kwolf@redhat.com>
Fri, 21 Apr 2017 07:59:41 +0000 (09:59 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Apr 2017 13:39:50 +0000 (15:39 +0200)
It is unused.

Suggested-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
tests/qemu-iotests/common.config

index 5ee00a10dd41e65198b2bd6ab2b8bbf834f109cd..d1b45f544740126f0221f3ae347099e0eb88c9da 100644 (file)
@@ -217,23 +217,5 @@ fi
 
 export SAMPLE_IMG_DIR
 
-_readlink()
-{
-    if [ $# -ne 1 ]; then
-        echo "Usage: _readlink filename" 1>&2
-        exit 1
-    fi
-
-    perl -e "\$in=\"$1\";" -e '
-    $lnk = readlink($in);
-    if ($lnk =~ m!^/.*!) {
-        print "$lnk\n";
-    }
-    else {
-        chomp($dir = `dirname $in`);
-        print "$dir/$lnk\n";
-    }'
-}
-
 # make sure this script returns success
 true