summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordobey <dobey>2007-02-26 20:56:23 +0000
committerdobey <dobey>2007-02-26 20:56:23 +0000
commit6597568b9a8255e637c594087155a2eeb12623d9 (patch)
tree97e61e7b3097e6b327a4cb45f707d01d619a7140
parent881583367f130b1930329ab70803a628d62c5537 (diff)
2007-02-26 Rodney Dawes <dobey@novell.com>
* python/A11yTestUtils.py (a11y_test_init): Add another argument to the method to allow specifying a different logfile name
-rw-r--r--ChangeLog5
-rw-r--r--python/A11yTestUtils.py9
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index afb362c..9eaed74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-26 Rodney Dawes <dobey@novell.com>
+
+ * python/A11yTestUtils.py (a11y_test_init): Add another argument to
+ the method to allow specifying a different logfile name
+
2007-02-21 Rodney Dawes <dobey@novell.com>
* scripts/yelp.py: Document how the script works, to aid people in
diff --git a/python/A11yTestUtils.py b/python/A11yTestUtils.py
index d282f88..e950d02 100644
--- a/python/A11yTestUtils.py
+++ b/python/A11yTestUtils.py
@@ -129,10 +129,15 @@ def a11y_find_panel_with_applet (appletName):
return None
-def a11y_test_init (programName, argumentList = '', noLaunch = 0):
+def a11y_test_init (programName, argumentList = '', noLaunch = 0,
+ logName = ''):
global f
ldtp.setlocale ('en_US.UTF-8')
- f = open (programName + '.html', 'w')
+
+ if (logName == ''):
+ logName = programName;
+
+ f = open (logName + '.html', 'w')
f.write ('<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\">')
f.write ('<html>\n')
f.write ('<head>\n')