Not all package stages have an archive file (e.g. source code repos) but all of

them do have a source_path: use this instead to check whether the package
resources were successfully retrieved.
This commit is contained in:
Peter Scheibel 2015-10-27 13:34:46 -07:00
parent 3b554c709b
commit 50d0a2643b

View File

@ -133,7 +133,7 @@ def create_test_output(topSpec, newInstalls, output, getLogFunc=fetch_log):
depBID = BuildId(dep)
errOutput = "Skipped due to failed dependency: {0}".format(
depBID.stringId())
elif (not package.installed) and (not package.stage.archive_file):
elif (not package.installed) and (not package.stage.source_path):
result = TestResult.FAILED
errOutput = "Failure to fetch package resources."
elif not package.installed: