t3700-add: create subdirectory gently
commitb07ad46432aa4fd80e8ebbcc48d38ec94ae20b01
authorJohannes Sixt <j6t@kdbg.org>
Tue, 20 Sep 2016 06:16:11 +0000 (20 08:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Sep 2016 18:05:35 +0000 (21 11:05 -0700)
treec74fa41a2691077c7fb05c8c42e6bba91c5f6b24
parent610d55af0f082f6b866dc858e144c03d8ed4424c
t3700-add: create subdirectory gently

The subdirectory 'sub' is created early in the test file. Later, a test
case removes it during its clean-up actions. However, this test case is
protected by POSIXPERM. Consequently, 'sub' remains when the POSIXPERM
prerequisite is not satisfied. Later, a recently introduced test case
creates 'sub' again. Use -p with mkdir so that it does not fail if 'sub'
already exists.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3700-add.sh