Commit ec6b75f4 authored by Nickolay V. Shmyrev's avatar Nickolay V. Shmyrev

Fixes the test


svn path=/trunk/; revision=3612
parent 8fd8a2aa
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment