evince r3612 - trunk/test



Author: nshmyrev
Date: Wed Apr 15 20:35:03 2009
New Revision: 3612
URL: http://svn.gnome.org/viewvc/evince?rev=3612&view=rev

Log:
Fixes the test	



Modified:
   trunk/test/test6.py

Modified: trunk/test/test6.py
==============================================================================
--- trunk/test/test6.py	(original)
+++ trunk/test/test6.py	Wed Apr 15 20:35:03 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]