From 26e67349f3db1f71e7184553acd3b5f488228e1d Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Fri, 24 May 2013 21:29:20 -0500 Subject: [PATCH] remote-helpers: test: cleanup style So it's more standardized between all the tests. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- test-hg.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test-hg.sh b/test-hg.sh index 7419b52..e278dfd 100755 --- a/test-hg.sh +++ b/test-hg.sh @@ -21,11 +21,15 @@ if ! python -c 'import mercurial'; then fi check () { - (cd $1 && + ( + cd $1 && git log --format='%s' -1 && - git symbolic-ref HEAD) > actual && - (echo $2 && - echo "refs/heads/$3") > expected && + git symbolic-ref HEAD + ) > actual && + ( + echo $2 && + echo "refs/heads/$3" + ) > expected && test_cmp expected actual }