From: Ian Jackson Date: Mon, 7 Dec 2015 16:37:03 +0000 (+0000) Subject: mg-schema-test-database: Change username for back-to-main-db xref X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=aa6bee377e6eda0640af41bdfcf105d00d4a5328;p=people%2Fiwj%2Fosstest.git mg-schema-test-database: Change username for back-to-main-db xref 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 DB(s). Signed-off-by: Ian Jackson Acked-by: Ian Campbell --- v3: Fix `DBS' in commit message to `DB(s)'. v2: New patch --- diff --git a/mg-schema-test-database b/mg-schema-test-database index b1b5e60b..78f26db6 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 <