qtestblacklist: check against duplicating versioned distro

Also check the version is non-empty.
Probably makes no difference, but it's obviously more correct.

Change-Id: I05eee5623ac432d2ea02f7aad874513beeb2ceeb
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
This commit is contained in:
Edward Welbourne 2016-05-24 16:16:56 +02:00 committed by Edward Welbourne
parent 832715a679
commit 6f59926e67

View File

@ -144,7 +144,11 @@ static QSet<QByteArray> activeConditions()
if (!distributionName.isEmpty()) { if (!distributionName.isEmpty()) {
if (result.find(distributionName) == result.end()) if (result.find(distributionName) == result.end())
result.insert(distributionName); result.insert(distributionName);
result.insert(distributionName + "-" + distributionRelease); if (!distributionRelease.isEmpty()) {
QByteArray versioned = distributionName + "-" + distributionRelease;
if (result.find(versioned) == result.end())
result.insert(versioned);
}
} }
return result; return result;