Message ID | 20230224013413.1969003-4-18994118902@163.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | t9700:moderizen test scripts | expand |
On 24/02/2023 01:34, Zhang Yi wrote: > There are whitespaces after redirect operators,which is a deprecated micro-nit: space after comma, before "which". Philip > style. > > Delete whitespaces after redirect operators. > > Signed-off-by: Zhang Yi <18994118902@163.com> > --- > t/t9700-perl-git.sh | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/t/t9700-perl-git.sh b/t/t9700-perl-git.sh > index 671875a3fc..ccc8212d73 100755 > --- a/t/t9700-perl-git.sh > +++ b/t/t9700-perl-git.sh > @@ -14,20 +14,20 @@ skip_all_if_no_Test_More > # set up test repository > > test_expect_success 'set up test repository' ' > - echo "test file 1" > file1 && > - echo "test file 2" > file2 && > + echo "test file 1" >file1 && > + echo "test file 2" >file2 && > mkdir directory1 && > - echo "in directory1" >> directory1/file && > + echo "in directory1" >>directory1/file && > mkdir directory2 && > - echo "in directory2" >> directory2/file && > + echo "in directory2" >>directory2/file && > git add . && > git commit -m "first commit" && > > - echo "new file in subdir 2" > directory2/file2 && > + echo "new file in subdir 2" >directory2/file2 && > git add . && > git commit -m "commit in directory2" && > > - echo "changed file 1" > file1 && > + echo "changed file 1" >file1 && > git commit -a -m "second commit" && > > git config --add color.test.slot1 green &&
diff --git a/t/t9700-perl-git.sh b/t/t9700-perl-git.sh index 671875a3fc..ccc8212d73 100755 --- a/t/t9700-perl-git.sh +++ b/t/t9700-perl-git.sh @@ -14,20 +14,20 @@ skip_all_if_no_Test_More # set up test repository test_expect_success 'set up test repository' ' - echo "test file 1" > file1 && - echo "test file 2" > file2 && + echo "test file 1" >file1 && + echo "test file 2" >file2 && mkdir directory1 && - echo "in directory1" >> directory1/file && + echo "in directory1" >>directory1/file && mkdir directory2 && - echo "in directory2" >> directory2/file && + echo "in directory2" >>directory2/file && git add . && git commit -m "first commit" && - echo "new file in subdir 2" > directory2/file2 && + echo "new file in subdir 2" >directory2/file2 && git add . && git commit -m "commit in directory2" && - echo "changed file 1" > file1 && + echo "changed file 1" >file1 && git commit -a -m "second commit" && git config --add color.test.slot1 green &&
There are whitespaces after redirect operators,which is a deprecated style. Delete whitespaces after redirect operators. Signed-off-by: Zhang Yi <18994118902@163.com> --- t/t9700-perl-git.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)