qemu_iotests: Remove _readlink()
PATCH 1/1 qemu_iotests: Remove _readlink()
It is unused.
Suggestetd-by Fam Zheng <[email protected]>
Signed-off-by Kevin Wolf <[email protected]>
--- tests/qemu-iotests/common.config | 18 ------------------ 1 file changed, 18 deletions(-)
tests/qemu-iotests/common.config +0 -18
@@ -204,23 +204,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
Signature · 1 line
1.8.3.1
Quoted 39 lines · Kevin Wolf
It is unused.
Suggestetd-by Fam Zheng <[email protected]>Signed-off-by Kevin Wolf <[email protected]>--- tests/qemu-iotests/common.config | 18 ------------------ 1 file changed, 18 deletions(-)tests/qemu-iotests/common.config +0
-18@@ -204,23 +204,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 trueSignature · 1 line
1.8.3.1
Reviewed-by Fam Zheng <[email protected]>
Quoted 1 line · Kevin Wolf
It is unused.
Might be worth also mentioning that it was the file's only client of perl, so removing it also makes it easier to justify removing a check for $PERL.
Quoted 6 lines
Suggestetd-by Fam Zheng <[email protected]>Signed-off-by Kevin Wolf <[email protected]>--- tests/qemu-iotests/common.config | 18 ------------------ 1 file changed, 18 deletions(-)
Reviewed-by Eric Blake <[email protected]>
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Quoted 3 lines · Kevin Wolf
It is unused.
Suggestetd-by Fam Zheng <[email protected]>
*Suggested
And, since it now would be rude not to, with that fixed:
Reviewed-by Max Reitz <[email protected]>
Quoted 34 lines
Signed-off-by Kevin Wolf <[email protected]>--- tests/qemu-iotests/common.config | 18 ------------------ 1 file changed, 18 deletions(-)tests/qemu-iotests/common.config +0
-18@@ -204,23 +204,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