rev-parse test: use standard test functions for setup
commit7495a17363de7397509710344e1c22f0918aceee
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 3 Sep 2013 17:15:46 +0000 (3 10:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Sep 2013 20:01:40 +0000 (3 13:01 -0700)
tree00cb5b78d7521143ec1b8b786fbdcf92101471f7
parentc812be9d81cf1fc587695d985bced50258b53d31
rev-parse test: use standard test functions for setup

Save the reader from learning specialized t6* setup functions
where familiar commands like test_commit, "git checkout --orphan",
and "git merge" will do.

While at it, wrap the setup commands in a test assertion so errors can
be caught and stray output suppressed when running without --verbose
as in other tests.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6101-rev-parse-parents.sh