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>
Armin Kunaschik committed
May 31, 2016 at 02:26 UTC
d2addc3b96886bb4dee71ef36684c8010bc37d16
1 file changed
+1
-1
t/t7800-difftool.sh
+1
-1
@@ -423,7 +423,7 @@ write_script .git/CHECK_SYMLINKS <<\EOF
423
for f in file file2 sub/sub
424
do
425
echo "$f"
426
- readlink "$2/$f"
426
+ ls -ld "$2/$f" | sed -e 's/.* -> //'
427
done >actual
428
EOF
429