From: Ian Jackson Subject: [OSSTEST PATCH 4/9] mg-schema-test-database: Borrow shares properly Date: Thu, 17 Dec 2015 17:06:03 +0000 Message-ID: <1450371968-27997-4-git-send-email-ian.jackson@eu.citrix.com> References: <1450371968-27997-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a9c0S-0005tt-N5 for xen-devel@lists.xenproject.org; Thu, 17 Dec 2015 17:06:20 +0000 In-Reply-To: <1450371968-27997-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Signed-off-by: Ian Jackson --- mg-schema-test-database | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mg-schema-test-database b/mg-schema-test-database index a4cb732..4e0ee68 100755 --- a/mg-schema-test-database +++ b/mg-schema-test-database @@ -448,12 +448,22 @@ END done # As we copy, we note everything we're not borrowing as - # belonging to the parent db. + # belonging to the parent db. We borrow shares of a shared + # resource. If we borrow only some rather than all of the + # shares, neither DB will be able to unshare it. + + # In principle it might be possible to actually use different + # shares of the same resource with different dbs. However the + # `sharetype' contains the osstest revision, which prevents + # sharing between test and real versions of osstest code. + cat >>$t.import <