xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [OSSTEST PATCH 1/3] known_hosts handling: Fix over-broad SQL query
@ 2020-10-16 16:36 Ian Jackson
  2020-10-16 16:36 ` [OSSTEST PATCH 2/3] known hosts handling: Ensure things are good for multi-host jobs Ian Jackson
  2020-10-16 16:36 ` [OSSTEST PATCH 3/3] Revert "host reuse: Reuse hosts only in same role (for now)" Ian Jackson
  0 siblings, 2 replies; 3+ messages in thread
From: Ian Jackson @ 2020-10-16 16:36 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Jackson

This should match only "*_host" and "host".  We don't want it matching
"*host" without a "_".

Signed-off-by: Ian Jackson <iwj@xenproject.org>
---
 Osstest/TestSupport.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index f2d8a0e1..5e6b15d9 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -2796,7 +2796,7 @@ sub known_hosts () {
 
     my $hostsq= $dbh_tests->prepare(<<END);
         SELECT val FROM runvars
-         WHERE flight=? AND name LIKE '%host'
+         WHERE flight=? AND (name = 'host' OR name LIKE '%\\_host')
          GROUP BY val
 END
     $hostsq->execute($flight);
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-16 16:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-16 16:36 [OSSTEST PATCH 1/3] known_hosts handling: Fix over-broad SQL query Ian Jackson
2020-10-16 16:36 ` [OSSTEST PATCH 2/3] known hosts handling: Ensure things are good for multi-host jobs Ian Jackson
2020-10-16 16:36 ` [OSSTEST PATCH 3/3] Revert "host reuse: Reuse hosts only in same role (for now)" Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).