From: Junio C Hamano Date: Wed, 19 Feb 2020 17:31:06 GMT Subject: Re: [GSoC Patch 5/5] t4202: use lib-log-graph functions Message-ID: In-Reply-To: <20200216134750.18947-5-abhishekkumar8222@gmail.com> Abhishek Kumar writes: > Helped-by: Johannes Schindelin > Signed-off-by: Abhishek Kumar > --- > t/t4202-log.sh | 49 ++++++++++--------------------------------------- > 1 file changed, 10 insertions(+), 39 deletions(-) > > diff --git a/t/t4202-log.sh b/t/t4202-log.sh > index 192347a3e1..403d88bb33 100755 > --- a/t/t4202-log.sh > +++ b/t/t4202-log.sh > @@ -5,6 +5,7 @@ test_description='git log' > . ./test-lib.sh > . "$TEST_DIRECTORY/lib-gpg.sh" > . "$TEST_DIRECTORY/lib-terminal.sh" > +. "$TEST_DIRECTORY/lib-log-graph.sh" > > test_expect_success setup ' > > @@ -452,8 +453,7 @@ cat > expect < EOF > > test_expect_success 'simple log --graph' ' > - git log --graph --pretty=tformat:%s >actual && > - test_cmp expect actual > + test_cmp_graph_file --pretty=tformat:%s > ' > > cat > expect < @@ -467,8 +467,7 @@ cat > expect < EOF > > test_expect_success 'simple log --graph --line-prefix="123 "' ' > - git log --graph --line-prefix="123 " --pretty=tformat:%s >actual && > - test_cmp expect actual > + test_cmp_graph_file --line-prefix="123 " --pretty=tformat:%s > ' Like [4/5], and unlike [2/5] and [3/5], this step also does seem like an improvement.