Skip to content

Commit 7f5329f

Browse files
drafnelgitster
authored andcommitted
t/t7811-grep-open.sh: remove broken/redundant creation of fake "less" script
The fake "less" script was already created in a previous test titled 'setup: fake "less"', so it is redundant. Additionally, it is broken since the redirection of 'cat' is to a file named 'less', but the chmod operates on the file named by the $less variable which may not contain the value 'less'. So, just remove this code, and rely on the creation of the fake "less" script performed earlier within the test script. Signed-off-by: Brandon Casey <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6a1b3fc commit 7f5329f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

t/t7811-grep-open.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,6 @@ test_expect_success 'git grep -O jumps to line in less' '
109109

110110
test_expect_success 'modified file' '
111111
rm -f actual &&
112-
cat >less <<-\EOF &&
113-
#!/bin/sh
114-
printf "%s\n" "$@" >actual
115-
EOF
116-
chmod +x $less &&
117112
cat >expect <<-\EOF &&
118113
+/*enum grep_pat_token
119114
grep.h

0 commit comments

Comments
 (0)