evince r3611 - branches/gnome-2-26/test
- From: nshmyrev svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3611 - branches/gnome-2-26/test
- Date: Wed, 15 Apr 2009 20:33:46 +0000 (UTC)
Author: nshmyrev
Date: Wed Apr 15 20:33:46 2009
New Revision: 3611
URL: http://svn.gnome.org/viewvc/evince?rev=3611&view=rev
Log:
Fixes the test
Modified:
branches/gnome-2-26/test/test6.py
Modified: branches/gnome-2-26/test/test6.py
==============================================================================
--- branches/gnome-2-26/test/test6.py (original)
+++ branches/gnome-2-26/test/test6.py Wed Apr 15 20:33:46 2009
@@ -5,10 +5,12 @@
import os
os.environ['LANG']='C'
srcdir = os.environ['srcdir']
+homedir = os.environ["HOME"] + "/";
from dogtail.procedural import *
-os.unlink("output.ps")
+if os.path.exists(homedir + "output.ps"):
+ os.unlink(homedir + "output.ps")
run('evince', arguments=' '+srcdir+'/test-page-labels.pdf')
@@ -19,10 +21,10 @@
click('Print to File', roleName='table cell', raw=True)
click('Print', roleName='push button')
-statinfo = os.stat ("output.ps")
+statinfo = os.stat (homedir + "output.ps")
if statinfo.st_size > 100000:
exit(1)
-os.unlink ("output.ps")
+os.unlink (homedir + "output.ps")
# Close evince
click('File', roleName='menu')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]