Skip to content

Commit a7b9c11

Browse files
committed
Add .txt extension to log files to make post-build introspection easier.
1 parent 1c5af13 commit a7b9c11

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/run-stp-tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,14 +1215,14 @@ cat str-trailer.html >>$strfile
12151215
echo ""
12161216
for file in $BASE/log/*_log; do
12171217
baselog=`basename $file`
1218-
cp $file $baselog-$date-$user
1219-
echo "Copied log file \"$baselog-$date-$user\" to test directory."
1218+
cp $file $baselog-$date-$user.txt
1219+
echo "Copied log file \"$baselog-$date-$user.txt\" to test directory."
12201220
done
12211221
cp $strfile .
12221222
echo "Copied report file \"cups-str-$date-$user.html\" to test directory."
12231223

12241224
# Clean out old failure log files after 1 week...
1225-
find . -name \*_log-\*-$user -a -mtime +7 -print -exec rm -f '{}' \; | awk '{print "Removed old log file \"" substr($1,3) "\" from test directory."}'
1225+
find . -name \*_log-\*-$user.txt -a -mtime +7 -print -exec rm -f '{}' \; | awk '{print "Removed old log file \"" substr($1,3) "\" from test directory."}'
12261226
find . -name cups-str-\*-$user.html -a -mtime +7 -print -exec rm -f '{}' \; | awk '{print "Removed old report file \"" $1 "\" from test directory."}'
12271227

12281228
echo ""

0 commit comments

Comments
 (0)