Mercurial > gub
changeset 2985:d2212021c98f
use %(viewer)s (evince) for PDF files.
author | hanwen <hanwen@lilypond.org> |
---|---|
date | Wed, 20 Dec 2006 01:08:37 +0100 |
parents | 7001ee8e3338 |
children | 9f690db761c1 |
files | test-lily/test-binary.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test-lily/test-binary.py Wed Dec 20 01:08:24 2006 +0100 +++ b/test-lily/test-binary.py Wed Dec 20 01:08:37 2006 +0100 @@ -36,7 +36,8 @@ base = os.path.split (bin)[1] platform = re.search ('lilypond-[0-9.]+-[0-9]+.([a-z0-9-]+).*', bin).group (1) - + viewer = 'evince' + if not platform: print 'unknown platform for', bin return @@ -81,7 +82,7 @@ % locals()) system ('scp %(uid)s@%(host)s:%(dir)s/%(base_test_file_stem)s.pdf %(logdir)s/%(base)s.test.pdf' % locals ()) - system ('xpdf %(logdir)s/%(base)s.test.pdf' + system ('%(viewer)s %(logdir)s/%(base)s.test.pdf' % locals ())