aboutsummaryrefslogtreecommitdiff
path: root/lib/framework.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-06-12 21:27:56 +1000
committerBen Elliston <bje@gnu.org>2012-06-12 21:27:56 +1000
commit2939bf452ee0afa910426c1ecf4c0f2aeff68ed3 (patch)
treec9b98ba392b4965d2005003c7e7d5dac5c34c486 /lib/framework.exp
parentdbd264c646362691407299d14fb1d18443ab1ef8 (diff)
downloaddejagnu-2939bf452ee0afa910426c1ecf4c0f2aeff68ed3.zip
dejagnu-2939bf452ee0afa910426c1ecf4c0f2aeff68ed3.tar.gz
dejagnu-2939bf452ee0afa910426c1ecf4c0f2aeff68ed3.tar.bz2
* doc/runtest.1: Update.
* runtest.exp (xml_file_name): New global. (usage): Update. Handle optional argument to --xml. * lib/framework.exp (open_logs): Respect xml_file_name. Signed-off-by: Ben Elliston <bje@gnu.org>
Diffstat (limited to 'lib/framework.exp')
-rw-r--r--lib/framework.exp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/framework.exp b/lib/framework.exp
index 5871ecc..8273882 100644
--- a/lib/framework.exp
+++ b/lib/framework.exp
@@ -1,5 +1,5 @@
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
-# 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+# 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Free Software Foundation, Inc.
#
# This file is part of DejaGnu.
#
@@ -65,6 +65,7 @@ proc open_logs { } {
global tool
global sum_file
global xml_file
+ global xml_file_name
global xml
if { ${tool} == "" } {
@@ -74,7 +75,10 @@ proc open_logs { } {
set sum_file [open [file join $outdir $tool.sum] w]
if { $xml } {
catch "file delete -force -- $outdir/$tool.xml"
- set xml_file [open [file join $outdir $tool.xml] w]
+ if { ![string compare $xml_file_name ""] } {
+ set xml_file_name $tool.xml
+ }
+ set xml_file [open [file join $outdir $xml_file_name] w]
xml_output "<?xml version=\"1.0\"?>"
insertdtd
xml_output "<testsuite>"