|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 57/62] platforms: Honour suite in get_arch_platforms
The available platforms may depend on the suite to be used.
Actually implement that for HostDB::Executive.
For Static, we leave it to the user.
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
Osstest/HostDB/Executive.pm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Osstest/HostDB/Executive.pm b/Osstest/HostDB/Executive.pm
index bf6ec57d..7ffca6c4 100644
--- a/Osstest/HostDB/Executive.pm
+++ b/Osstest/HostDB/Executive.pm
@@ -99,18 +99,20 @@ SELECT DISTINCT hostflag
FROM hostflags h0
WHERE EXISTS (
SELECT *
- FROM hostflags h1, hostflags h2, hostflags h3
+ FROM hostflags h1, hostflags h2, hostflags h3, hostflags h4
WHERE h0.hostname = h1.hostname
AND h1.hostname = h2.hostname
AND h2.hostname = h3.hostname
+ AND h3.hostname = h4.hostname
AND h1.hostflag = ?
AND h2.hostflag = ?
AND h3.hostflag = 'purpose-test'
+ AND h4.hostflag = ?
)
AND hostflag like 'platform-%';
END
- $platsq->execute("blessed-$blessing", "arch-$arch");
+ $platsq->execute("blessed-$blessing", "arch-$arch", "suite-$suite");
while (my ($plat) = $platsq->fetchrow_array()) {
$plat =~ s/^platform-//g or die;
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |