testing: do not rely on "compile" being enabled

This fixes a problem during source checkout.
This commit is contained in:
Patrick Ohly 2014-01-07 03:00:53 -08:00
parent edda92b352
commit 333b282b9b

View file

@ -1242,7 +1242,7 @@ if options.prebuilt != None:
compile.installdir = options.schrootdir
compile.installed = True
else:
if enabled["compile"] == "no-tests":
if enabled.get("compile", None) == "no-tests":
# Regular build.
build = AutotoolsBuild
else: