[test] Minor
This commit is contained in:
parent
44c65eee28
commit
141db8b7a3
|
@ -86,10 +86,6 @@ TEST_EXTENSIONS = \
|
|||
AM_TESTS_ENVIRONMENT = \
|
||||
EXEEXT="$(EXEEXT)"; \
|
||||
export EXEEXT; \
|
||||
srcdir="$(srcdir)"; \
|
||||
export srcdir; \
|
||||
builddir="$(builddir)"; \
|
||||
export builddir; \
|
||||
$(NULL)
|
||||
|
||||
if AUTOMAKE_OLDER_THAN_1_13
|
||||
|
|
|
@ -20,7 +20,7 @@ def cmd(command):
|
|||
|
||||
builddir = os.environ.get ("builddir", ".")
|
||||
top_builddir = os.environ.get ("top_builddir",
|
||||
os.path.normpath (os.path.join (os.getcwd (), "..", "..")))
|
||||
os.path.normpath (os.path.join (builddir, "..", "..")))
|
||||
utildir = os.environ.get ("utildir", "util")
|
||||
EXEEXT = os.environ.get ("EXEEXT", "")
|
||||
|
||||
|
@ -30,7 +30,7 @@ hb_shape = os.path.join (top_builddir, utildir, "hb-shape" + EXEEXT)
|
|||
args = sys.argv[1:]
|
||||
|
||||
if not os.path.exists (hb_shape):
|
||||
if len (sys.argv) == 1 or not os.path.exists (sys.argv[1]):
|
||||
if len (sys.argv) == 1 or sys.argv[1].find('hb-shape') == -1 or not os.path.exists (sys.argv[1]):
|
||||
print ("""Failed to find hb-shape binary automatically,
|
||||
please provide it as the first argument to the tool""")
|
||||
sys.exit (1)
|
||||
|
|
Loading…
Reference in New Issue