From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 13/16] mg-schema-test-database: Change username for back-to-main-db xref Date: Mon, 7 Dec 2015 17:27:31 +0000 Message-ID: <1449509254-27007-14-git-send-email-ian.jackson@eu.citrix.com> References: <1449509254-27007-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.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a5zZk-000893-I2 for xen-devel@lists.xenproject.org; Mon, 07 Dec 2015 17:27:48 +0000 In-Reply-To: <1449509254-27007-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 The `username' of the xdbref task in the test db, referring to the main db, is changed to `PARENT' (from `@'). Currently this is purely cosmetic, but it is going to be useful to distinguish the two cases: * This is a test DB and contains references to a parent * This is a parent DB (probably the main DB) which contains references to child test DBS. Signed-off-by: Ian Jackson --- v2: New patch --- mg-schema-test-database | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mg-schema-test-database b/mg-schema-test-database index b1b5e60..78f26db 100755 --- a/mg-schema-test-database +++ b/mg-schema-test-database @@ -152,10 +152,11 @@ make_xdbref_task () { local refkey=$1; shift local comment=$1; shift local refinfo=$1; shift + local taskusername=$1; shift echo " INSERT INTO tasks (type, refkey, username, comment, live, refinfo) - VALUES ('xdbref','$refkey','$username@$nodename', + VALUES ('xdbref','$refkey','$taskusername', '$comment','t','$refinfo'); " } @@ -373,7 +374,8 @@ END for task in $tasks; do psql_do <>$t.import <