mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
[DPP-1144] Do not fail when benchtool-tests package is not found by Benchtool (#15455)
changelog_begin changelog_end
This commit is contained in:
parent
2d2f645fdd
commit
3d83948cdb
@ -78,10 +78,13 @@ object SubmittedDataAnalyzing {
|
||||
if (candidatesPackageIds.size > 1) {
|
||||
logger.warn(s"Found more than one Daml package with name '$BenchtoolTestsPackageName'")
|
||||
}
|
||||
val packageId = candidatesPackageIds.headOption.getOrElse(
|
||||
sys.error(s"Could not find a Daml package with name '$BenchtoolTestsPackageName'")
|
||||
)
|
||||
BenchtoolTestsPackageInfo(packageId = packageId)
|
||||
val detectedPackageInfoO = candidatesPackageIds.headOption.map(BenchtoolTestsPackageInfo(_))
|
||||
detectedPackageInfoO.getOrElse {
|
||||
logger.info(
|
||||
s"Could not find a Daml package with name '$BenchtoolTestsPackageName'; defaulting its packageId to the static one"
|
||||
)
|
||||
BenchtoolTestsPackageInfo.StaticDefault
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user