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:
		@@ -133,7 +133,7 @@ def create_test_output(topSpec, newInstalls, output, getLogFunc=fetch_log):
 | 
				
			|||||||
            depBID = BuildId(dep)
 | 
					            depBID = BuildId(dep)
 | 
				
			||||||
            errOutput = "Skipped due to failed dependency: {0}".format(
 | 
					            errOutput = "Skipped due to failed dependency: {0}".format(
 | 
				
			||||||
                depBID.stringId())
 | 
					                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
 | 
					            result = TestResult.FAILED
 | 
				
			||||||
            errOutput = "Failure to fetch package resources."
 | 
					            errOutput = "Failure to fetch package resources."
 | 
				
			||||||
        elif not package.installed:
 | 
					        elif not package.installed:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user