From: Stepan Kasal Date: Mon, 3 Oct 2005 10:43:55 +0000 (+0000) Subject: (AT_INIT): Make the test dir writable... IF it exists. X-Git-Tag: AUTOCONF-2.59c~240 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f073f1e44e8395be88a61a447e1022187ef0b044;p=thirdparty%2Fautoconf.git (AT_INIT): Make the test dir writable... IF it exists. --- diff --git a/ChangeLog b/ChangeLog index 26feba4d4..be22a9efd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,9 +2,10 @@ Stepan Kasal * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses. - * lib/autotest/general.m4 (AT_INIT): Make test dir content writable - before removing. Remove an errorneous comment from the end, where - the logs of the failed tests are copied to the main log file. + * lib/autotest/general.m4 (AT_INIT): If the test dir already exists, + make its content writable before removing it. Remove an errorneous + comment from the end, where the logs of the failed tests are copied + to the main log file. 2005-09-27 Stepan Kasal diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index 23a080c3b..be435d87f 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -669,7 +669,7 @@ do # Create a fresh directory for the next test group, and enter. at_group_dir=$at_suite_dir/$at_group_normalized at_group_log=$at_group_dir/$as_me.log - chmod -R u+w $at_group_dir + test -d $at_group_dir && chmod -R u+w $at_group_dir rm -f -r $at_group_dir mkdir $at_group_dir || AS_ERROR([cannot create $at_group_dir])