summaryrefslogtreecommitdiff
path: root/t/t7800-difftool.sh
diff options
context:
space:
mode:
authorArmin Kunaschik <megabreit@googlemail.com>2016-05-31 00:26:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-06-21 18:41:31 (GMT)
commitd2addc3b96886bb4dee71ef36684c8010bc37d16 (patch)
tree97a777af5c24ae5cb83aaa36d838906fb7f9cd5c /t/t7800-difftool.sh
parent765428699a5381f113d19974720bc91b5bfeaf1d (diff)
downloadgit-d2addc3b96886bb4dee71ef36684c8010bc37d16.zip
git-d2addc3b96886bb4dee71ef36684c8010bc37d16.tar.gz
git-d2addc3b96886bb4dee71ef36684c8010bc37d16.tar.bz2
t7800: readlink may not be available
The readlink(1) command is not available on all platforms (notably not on AIX and HP-UX) and can be replaced in this test with the "workaround" ls -ld <name> | sed -e 's/.* -> //' This is no universal readlink replacement but works in the controlled test environment well enough. Signed-off-by: Armin Kunaschik <megabreit@googlemail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7800-difftool.sh')
-rwxr-xr-xt/t7800-difftool.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh
index ea35a02..cec3eaf 100755
--- a/t/t7800-difftool.sh
+++ b/t/t7800-difftool.sh
@@ -423,7 +423,7 @@ write_script .git/CHECK_SYMLINKS <<\EOF
for f in file file2 sub/sub
do
echo "$f"
- readlink "$2/$f"
+ ls -ld "$2/$f" | sed -e 's/.* -> //'
done >actual
EOF