Skip to content

Commit

Permalink
Fixes the test
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=3612
  • Loading branch information
Nickolay V. Shmyrev committed Apr 15, 2009
1 parent 8fd8a2a commit ec6b75f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/test6.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -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')
Expand Down

0 comments on commit ec6b75f

Please sign in to comment.