From 1c207c1d7c9b7b339f5dd2ad772c7c22e600e61b Mon Sep 17 00:00:00 2001 From: Robert Managan Date: Sat, 13 Oct 2012 11:16:29 -0700 Subject: Fix test for presence of biber and in several tests make variable names consistent with what we are testing the presence of --- test/TEX/biber_biblatex.py | 2 +- test/TEX/biblatex.py | 4 ++-- test/TEX/clean.py | 4 ++-- test/TEX/lstinputlisting.py | 4 ++-- test/TEX/multibib.py | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/TEX/biber_biblatex.py b/test/TEX/biber_biblatex.py index 94b0a6a..a63fb3f 100755 --- a/test/TEX/biber_biblatex.py +++ b/test/TEX/biber_biblatex.py @@ -40,7 +40,7 @@ if not latex: test.skip_test("Could not find 'pdflatex'; skipping test.\n") biber = test.where_is('biber') -if not latex: +if not biber: test.skip_test("Could not find 'biber'; skipping test.\n") gloss = os.system('kpsewhich biblatex.sty') diff --git a/test/TEX/biblatex.py b/test/TEX/biblatex.py index a70e103..a6fbd48 100755 --- a/test/TEX/biblatex.py +++ b/test/TEX/biblatex.py @@ -39,8 +39,8 @@ latex = test.where_is('pdflatex') if not latex: test.skip_test("Could not find 'pdflatex'; skipping test.\n") -gloss = os.system('kpsewhich biblatex.sty') -if not gloss==0: +biblatex = os.system('kpsewhich biblatex.sty') +if not biblatex==0: test.skip_test("biblatex.sty not installed; skipping test(s).\n") diff --git a/test/TEX/clean.py b/test/TEX/clean.py index 9250e4e..b0e5ee4 100644 --- a/test/TEX/clean.py +++ b/test/TEX/clean.py @@ -38,8 +38,8 @@ latex = test.where_is('latex') if not latex: test.skip_test("Could not find tex or latex; skipping test(s).\n") -gloss = os.system('kpsewhich comment.sty') -if not gloss==0: +comment = os.system('kpsewhich comment.sty') +if not comment==0: test.skip_test("comment.sty not installed; skipping test(s).\n") # package hyperref generates foo.out diff --git a/test/TEX/lstinputlisting.py b/test/TEX/lstinputlisting.py index 66676ed..fcfe5a8 100644 --- a/test/TEX/lstinputlisting.py +++ b/test/TEX/lstinputlisting.py @@ -41,8 +41,8 @@ pdflatex = test.where_is('pdflatex') if not pdflatex: test.skip_test("Could not find pdflatex; skipping test(s).\n") -gloss = os.system('kpsewhich listings.sty') -if not gloss==0: +listings = os.system('kpsewhich listings.sty') +if not listings==0: test.skip_test("listings.sty not installed; skipping test(s).\n") test.write(['SConstruct'], """\ diff --git a/test/TEX/multibib.py b/test/TEX/multibib.py index a2ae4ec..cdb9b87 100644 --- a/test/TEX/multibib.py +++ b/test/TEX/multibib.py @@ -39,8 +39,8 @@ latex = test.where_is('latex') if not latex: test.skip_test("Could not find 'latex'; skipping test.\n") -gloss = os.system('kpsewhich multibib.sty') -if not gloss==0: +multibib = os.system('kpsewhich multibib.sty') +if not multibib==0: test.skip_test("multibib.sty not installed; skipping test(s).\n") test.subdir(['src']) -- cgit v0.12