[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 1/2] mfi-common: break out xenbranch_supports_livepatch


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Date: Wed, 5 Jun 2019 12:13:55 +0100
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=ian.jackson@xxxxxxxxxxxxx; spf=Pass smtp.mailfrom=Ian.Jackson@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Delivery-date: Wed, 05 Jun 2019 11:14:52 +0000
  • Ironport-sdr: lsRNQ2UwwlV5EBmqf0enKEF9Ymc2uERWLDFT5qC/vZp/XkjTRO7J29gwI2IIlmaeKbzTBlGDoB 5wXyktBXOl5DJZ5XznVvr/PwdML+Bi4L95sutZFHA0uwcXMVFbwwChn75l+nQoZ8rfxswGwBqA f87Qx1zGYIFn5RQlIarb5nqGBUgaLWa/WEzA5lurjDJU9GLC9TYC6jqkJWeegS4YSjqqH7mVnb 9GMrlx08xOmTy6/U8M90xO7w4QEI7ofAmEMtu4FD9QhKqOC4PA9r9lOBjBMvyJbs2oMXCL5/OW ZsM=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

No functional change.

Verified with standalone-generate-dump-flight-runvars.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 mfi-common | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/mfi-common b/mfi-common
index 30f2692d..b86febda 100644
--- a/mfi-common
+++ b/mfi-common
@@ -72,8 +72,8 @@ branch_wants_xtf_tests () {
   esac
 }
 
-branch_wants_livepatch () {
-  case "$branch" in
+xenbranch_supports_livepatch () {
+  case "$xenbranch" in
     xen-3.*)    return 1;;
     xen-4.0-testing)   return 1;;
     xen-4.1-testing)   return 1;;
@@ -83,6 +83,13 @@ branch_wants_livepatch () {
     xen-4.5-testing)   return 1;;
     xen-4.6-testing)   return 1;;
     xen-4.7-testing)   return 1;;
+    *)      return 0;;
+  esac
+}
+
+branch_wants_livepatch () {
+  if ! xenbranch_supports_livepatch; then return 1; fi
+  case "$branch" in
     xen-*)      return 0;;
     osstest*)   return 0;;
     *)          return 1;;
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.