From: Pádraig Brady Date: Mon, 10 Feb 2020 15:05:43 +0000 (+0000) Subject: tests: fix test for symlink X-Git-Tag: v8.32~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3150f4a82ef6542c4a8f0bf413815e78766f044f;p=thirdparty%2Fcoreutils.git tests: fix test for symlink * tests/cp/preserve-gid.sh: s/-l/-L/. Reported by Kamil Dudka --- diff --git a/tests/cp/preserve-gid.sh b/tests/cp/preserve-gid.sh index bba09df098..547bf66bc5 100755 --- a/tests/cp/preserve-gid.sh +++ b/tests/cp/preserve-gid.sh @@ -111,7 +111,7 @@ cleanup_() { rm -rf "$tmp_path"; } test -d /tmp && TMPDIR=/tmp tmp_path=$(mktemp -d) || fail_ "failed to create temporary directory" if test -x "$abs_path_dir_/coreutils" && - { test -l "$abs_path_dir_/cp" || + { test -L "$abs_path_dir_/cp" || test $(wc -l < "$abs_path_dir_/cp") = 1; } then # if configured with --enable-single-binary we need to use the single binary cp "$abs_path_dir_/coreutils" "$tmp_path/cp" || framework_failure_