iotests: Drop readlink -f
commit1f04fa3e002e28b96277bf3f09265a4221cdb39b
authorMax Reitz <mreitz@redhat.com>
Mon, 14 Sep 2020 14:56:06 +0000 (14 16:56 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 16 Sep 2020 06:41:06 +0000 (16 08:41 +0200)
tree47df23166430ec33030b87936176a7fd7ba7bc63
parentde39a045bd8d2b49e4f3d07976622c29d58e0bac
iotests: Drop readlink -f

On macOS, (out of the box) readlink does not have -f.  We do not really
need readlink here, though, it was just a replacement for realpath
(which is not available on our BSD test systems), which we needed to
make the $(dirname) into an absolute path.

Instead of using either, just use "cd; pwd" like is done for
$source_iotests.

Fixes: b1cbc33a3971b6bb005d5ac3569feae35a71de0f
       ("iotests: Allow running from different directory")
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reported-by: Claudio Fontana <cfontana@suse.de>
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200914145606.94620-1-mreitz@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qemu-iotests/check