From: Ævar Arnfjörð Bjarmason Date: Sat, 25 Sep 2010 10:29:07 GMT Subject: Re: [PATCH/RFC v2 3/4] rev-parse: add tests for git rev-parse --flags. Message-ID: In-Reply-To: <1285405454-12521-5-git-send-email-jon.seymour@gmail.com> > +test_expect_success 'git rev-parse --flags -> ""' \ > +' > +       output=$(git rev-parse --flags) && > +       expected="" && > +       test "${output}" = "${expected}" > +' > + > +test_expect_success 'git rev-parse --flags X -> ""' \ > +' > +       output=$(git rev-parse --flags X) && > +       expected="" && > +       test "${output}" = "${expected}" > +' > + Please use test_cmp throughout the test instead: >expect && git rev-parse --flags >actual && test_cmp expect actual etc.