[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[7026] clear test out_ directories
From: |
Gavin D. Smith |
Subject: |
[7026] clear test out_ directories |
Date: |
Sun, 21 Feb 2016 14:21:11 +0000 |
Revision: 7026
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7026
Author: gavin
Date: 2016-02-21 14:19:49 +0000 (Sun, 21 Feb 2016)
Log Message:
-----------
clear test out_ directories
Modified Paths:
--------------
trunk/ChangeLog
trunk/tp/t/test_utils.pl
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2016-02-21 13:56:34 UTC (rev 7025)
+++ trunk/ChangeLog 2016-02-21 14:19:49 UTC (rev 7026)
@@ -1,5 +1,11 @@
2016-02-21 Gavin Smith <address@hidden>
+ * tp/t/test_utils.pl (test): When using an out_ directory (like
+ out_info or out_html), delete its contents to prevent test
+ failures from left-over files.
+
+2016-02-21 Gavin Smith <address@hidden>
+
* tp/Texinfo/Common.pm (%misc_commands): Move
'setcontentsaftertitlepage' and 'setshortcontentsaftertitlepage'
to obsolete section.
Modified: trunk/tp/t/test_utils.pl
===================================================================
--- trunk/tp/t/test_utils.pl 2016-02-21 13:56:34 UTC (rev 7025)
+++ trunk/tp/t/test_utils.pl 2016-02-21 14:19:49 UTC (rev 7026)
@@ -809,8 +809,12 @@
if (!defined($format_converter_options->{'SUBDIR'})) {
mkdir ($base)
if (! -d $base);
- mkdir ($base."$test_out_dir/")
- if (! -d $base."$test_out_dir/");
+ if (! -d $base."$test_out_dir/") {
+ mkdir ($base."$test_out_dir/");
+ } else {
+ # remove any files from previous runs
+ unlink glob ($base."$test_out_dir/*");
+ }
$format_converter_options->{'SUBDIR'}
= $base."$test_out_dir/";
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [7026] clear test out_ directories,
Gavin D. Smith <=