aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2017-04-21 09:59:41 +0200
committerKevin Wolf <kwolf@redhat.com>2017-04-27 15:39:50 +0200
commit242e496b39d364765e428e182b3bdeee94cc5c84 (patch)
tree88b2ea1fb9e2a4b605acba6e71960f19f20311b1 /tests
parent1ea88d359f8ccfa4bf25d885748f0a49a41de4ae (diff)
downloadqemu-242e496b39d364765e428e182b3bdeee94cc5c84.zip
qemu-242e496b39d364765e428e182b3bdeee94cc5c84.tar.gz
qemu-242e496b39d364765e428e182b3bdeee94cc5c84.tar.bz2
qemu_iotests: Remove _readlink()
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/qemu-iotests/common.config18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/qemu-iotests/common.config b/tests/qemu-iotests/common.config
index 5ee00a1..d1b45f5 100644
--- a/tests/qemu-iotests/common.config
+++ b/tests/qemu-iotests/common.config
@@ -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