From: Nickolay V. Shmyrev Date: Wed, 15 Apr 2009 20:35:03 +0000 (+0000) Subject: Fixes the test X-Git-Tag: EVINCE_2_27_1~68 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=ec6b75f4f3a1b2390bcb66b558913d46fe2a8aa4;p=evince.git Fixes the test svn path=/trunk/; revision=3612 --- diff --git a/test/test6.py b/test/test6.py index 9ffcfaec..89b6e5d0 100755 --- a/test/test6.py +++ b/test/test6.py @@ -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 @@ focus.dialog('Print') 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')