]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AT_INIT): Make the test dir writable... IF it exists.
authorStepan Kasal <kasal@ucw.cz>
Mon, 3 Oct 2005 10:43:55 +0000 (10:43 +0000)
committerStepan Kasal <kasal@ucw.cz>
Mon, 3 Oct 2005 10:43:55 +0000 (10:43 +0000)
ChangeLog
lib/autotest/general.m4

index 26feba4d4377cac28f97ebd3d2c59c5aa46626de..be22a9efdb9296b1e508959103358e7003823ae7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,9 +2,10 @@
            Stepan Kasal  <kasal@ucw.cz>
 
         * 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  <kasal@ucw.cz>
 
index 23a080c3be57e54cf3856d56a76ecb0ee061242a..be435d87f0952cc766e15a52c9ad5b861b083e7d 100644 (file)
@@ -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])