author | Jonathan Nieder <jrnieder@gmail.com> | |
Tue, 7 Sep 2010 01:50:17 +0000 (20:50 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 30 Sep 2010 17:39:06 +0000 (10:39 -0700) | ||
commit | dbda967684dfefd0ac3518f9805ccf9ded9af429 | |
tree | bfe19181c3eff2748b21fa68c75135fa7120bc31 | tree | snapshot |
parent | e14712c9e6801855a033ee1e7013f54580f270a1 | commit | diff |
t0004 (unwritable files): simplify error handling
Instead of
... normal test script ...
status=$?
... cleanup ...
(exit $status)
set up cleanup commands with test_when_finished. This makes the
test script a little shorter, and more importantly, it ensures errors
during cleanup are reported.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Instead of
... normal test script ...
status=$?
... cleanup ...
(exit $status)
set up cleanup commands with test_when_finished. This makes the
test script a little shorter, and more importantly, it ensures errors
during cleanup are reported.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0004-unwritable.sh | diff | blob | history |