]> git.ipfire.org Git - thirdparty/git.git/commit
svn tests: refactor away a "set -e" in test body
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 12 Apr 2021 11:33:26 +0000 (13:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Apr 2021 21:10:51 +0000 (14:10 -0700)
commit4f4d2017a370bdee57059d9454d4e1aca0741231
tree96d3ae6651b43920b22b6dba90f242a44b2a29d2
parent88fce1219ef816face7b89d039f39767c94a232e
svn tests: refactor away a "set -e" in test body

Refactor a test added in 83c9433e67 (git-svn: support for git-svn
propset, 2014-12-07) to avoid using "set -e" in the test body. Let's
move this into a setup test using "test_expect_success" instead.

While I'm at it refactor:

 * Repeated "mkdir" to "mkdir -p"
 * Uses of "touch" to creating the files with ">" instead
 * The "rm -rf" at the end to happen in a "test_when_finished"

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9148-git-svn-propset.sh