From: Ping Yin Date: Tue, 11 Mar 2008 01:57:27 GMT Subject: Re: [PATCH v4 5/5] git-submodule summary: test Message-ID: <46dff0320803101857t435ec42g93c3605ec64d710a@mail.gmail.com> In-Reply-To: <1205171657-16216-5-git-send-email-pkufranky@gmail.com> On Tue, Mar 11, 2008 at 1:54 AM, Ping Yin wrote: > Signed-off-by: Ping Yin > --- > t/t7401-submodule-summary.sh | 194 ++++++++++++++++++++++++++++++++++++++++++ > + > +sleep 1s > +head4=$(add_file sm1 foo4 foo5) && > +head4_full=$(GIT_DIR=sm1/.git git rev-parse --verify HEAD) > +test_expect_success 'modified submodule(backward and forward)' " > + git submodule summary >actual && > + diff actual - <<-EOF > +* sm1 $head2...$head4 (4): > + > Add foo5 > + > Add foo4 > + < Add foo3 > + < Add foo2 > + > +EOF > +" 'sleep 1s' is used to just make sure the summary result just has the same commit order as i expected (the order is undefined if not using this because the commit time are all the same). However, it seems ugly. I will resend this patch later by using result from 'git log --pretty=format' as the expected result. > + -- Ping Yin