From: Stephen Boyd Date: Tue, 26 May 2009 06:17:14 +0000 (-0700) Subject: t5500: Modernize test style X-Git-Tag: v1.6.4-rc0~115 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/3902985a58d5b5f42406f11f1c8b9b87a98c7e3c?hp=3902985a58d5b5f42406f11f1c8b9b87a98c7e3c t5500: Modernize test style Code outside of the test harness was emitting "Initializing..." from git-init. Fixup this test to be more modern: - test_expect_object_count() and count_objects() are unused - use grep directly instead of test "..." = $(grep ...) - end the test_expect_success line with a single-quote and put the test on a new line - put as much code inside the test harness as possible - no_strict_count_check is unused and duplicates the test "new object count" - use && whenever possible to catch errors early - use test_tick instead of GIT_AUTHOR_DATE=$sec - remove debugging aid log.txt - use subshells instead of cd-ing around Also merge the pull test into one large test. Signed-off-by: Stephen Boyd Signed-off-by: Junio C Hamano ---