t/t5528-push-default: generalize test_push_*
commit396243fa479cd27bef1ced2ea5a9e4cf20f85a4b
authorRamkumar Ramachandra <artagnon@gmail.com>
Wed, 19 Jun 2013 11:11:43 +0000 (19 16:41 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Jun 2013 17:18:41 +0000 (24 10:18 -0700)
treedc3bd4bbe291a5ce7dd4b0df4f296e2562596ac6
parented2b18292bfeedc98c9e2b6bd8a35d8001dab2fc
t/t5528-push-default: generalize test_push_*

The setup creates two bare repositories: repo1 and repo2, but
test_push_commit() hard-codes checking in repo1 for the actual output.
Generalize it and its caller, test_push_success(), to optionally accept
a third argument to specify the name of the repository to check for
actual output.  We will use this in the next patch.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5528-push-default.sh