From patchwork Fri Jul 28 15:26:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 9869071 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ED6946037D for ; Fri, 28 Jul 2017 15:30:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D828C288B2 for ; Fri, 28 Jul 2017 15:30:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD054288DC; Fri, 28 Jul 2017 15:30:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0B36A288DE for ; Fri, 28 Jul 2017 15:30:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db7Bf-0004zN-J1; Fri, 28 Jul 2017 15:28:23 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db7Be-0004ye-2A for xen-devel@lists.xenproject.org; Fri, 28 Jul 2017 15:28:22 +0000 Received: from [85.158.143.35] by server-7.bemta-6.messagelabs.com id 43/C6-03557-5185B795; Fri, 28 Jul 2017 15:28:21 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOIsWRWlGSWpSXmKPExsXitHSDva5IRHW kweOLZhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8aeQwuYCw5KVtxZe4SlgfGicBcjJ4eEgL/E ts5pTCA2m4COxMW5O9m6GDk4RARUJG7vNQAJMwuESLQe+8IOYgsLBEq8urcBzGYRUJW4/+Y0C 4jNK2ApcW7JQnaIkXoSbye+YASxOQWsJBpfzmMFsYWAavZN62GCqBeUODnzCQvEfE2J1u2/2S FseYnmrbOZIeoVJfrnPWCbwMg3C0nLLCQts5C0LGBkXsWoXpxaVJZapGupl1SUmZ5RkpuYmaN raGCml5taXJyYnpqTmFSsl5yfu4kRGGgMQLCD8e6mgEOMkhxMSqK8N82qI4X4kvJTKjMSizPi i0pzUosPMcpwcChJ8LaHAeUEi1LTUyvSMnOAIQ+TluDgURLhlQZJ8xYXJOYWZ6ZDpE4x6nK8m vD/G5MQS15+XqqUOO8akCIBkKKM0jy4EbD4u8QoKyXMywh0lBBPQWpRbmYJqvwrRnEORiVh3l UgU3gy80rgNr0COoIJ6IiJTZUgR5QkIqSkGhin+Gat2X9/e8S7z7pcOoZxR1nk5RmurQ5ea2s gk3t3UZqegenpQx13uP24vgRk77jGIGJ5XS2+gEV19Vb9178Sv6TNk47c/O55+59sX8/PK5SW T4+tuJV5o3+PeEBYbJwHP/ty+a7peh7yf284bBHIUu6+xhanm30n84ror/vds4J6HVzP3FJiK c5INNRiLipOBAAVK8/lugIAAA== X-Env-Sender: prvs=375b3df75=roger.pau@citrix.com X-Msg-Ref: server-10.tower-21.messagelabs.com!1501255699!68830968!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 8990 invoked from network); 28 Jul 2017 15:28:20 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-10.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 28 Jul 2017 15:28:20 -0000 X-IronPort-AV: E=Sophos;i="5.40,425,1496102400"; d="scan'208";a="441766841" From: Roger Pau Monne To: Date: Fri, 28 Jul 2017 16:26:31 +0100 Message-ID: <20170728152637.20301-6-roger.pau@citrix.com> X-Mailer: git-send-email 2.11.0 (Apple Git-81) In-Reply-To: <20170728152637.20301-1-roger.pau@citrix.com> References: <20170728152637.20301-1-roger.pau@citrix.com> MIME-Version: 1.0 Cc: Ian Jackson , Roger Pau Monne Subject: [Xen-devel] [PATCH OSSTEST 05/11] mfi-common: move set_freebsd_runvars to mfi-common X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP So that it can also be used by make-hosts-flight. No functional change intended. Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson --- make-freebsd-flight | 31 ------------------------------- mfi-common | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/make-freebsd-flight b/make-freebsd-flight index 64dfe9a6..72695742 100755 --- a/make-freebsd-flight +++ b/make-freebsd-flight @@ -36,37 +36,6 @@ job_create_build_filter_callback () { : } -set_freebsd_runvars () { - # Caller should have done if required: - # local freebsd_runvars - # - # Figure out where are the installer binaries. The order is the - # following: - # - # 1. Env variable FREEBSD__BUILDJOB: use the output from a - # previous build--freebsd. - # - # 2. Env variables FREEBSD_DIST, FREEBSD_VERSION: set before calling - # into make-flight, provide the path to the installer image, the sets - # to install and the version being installed. - # - # 3. Config file FreeBSDDist, FreeBSDVersion: same as 2. except that - # they are set on the config file. - # - envvar="FREEBSD_${arch^^}_BUILDJOB" - if [ -n "${!envvar}" ]; then - freebsd_runvars="freebsdbuildjob=${!envvar}" - elif [ -n "$FREEBSD_DIST" ] && [ -n "$FREEBSD_VERSION" ]; then - freebsd_runvars="freebsd_distpath=$FREEBSD_DIST/$arch \ - freebsd_version=$FREEBSD_VERSION" - else - distpath=`getconfig "FreeBSDDist"` - version=`getconfig "FreeBSDVersion"` - freebsd_runvars="freebsd_distpath=$distpath/$arch \ - freebsd_version=$version" - fi -} - for arch in "$arches"; do set_freebsd_runvars job_create_build build-$arch-freebsd build-freebsd \ diff --git a/mfi-common b/mfi-common index 4827c827..8a9546ab 100644 --- a/mfi-common +++ b/mfi-common @@ -113,6 +113,37 @@ set_hostos_runvars () { esac } +set_freebsd_runvars () { + # Caller should have done if required: + # local freebsd_runvars + # + # Figure out where are the installer binaries. The order is the + # following: + # + # 1. Env variable FREEBSD__BUILDJOB: use the output from a + # previous build--freebsd. + # + # 2. Env variables FREEBSD_DIST, FREEBSD_VERSION: set before calling + # into make-flight, provide the path to the installer image, the sets + # to install and the version being installed. + # + # 3. Config file FreeBSDDist, FreeBSDVersion: same as 2. except that + # they are set on the config file. + # + local envvar="FREEBSD_${arch^^}_BUILDJOB" + if [ -n "${!envvar}" ]; then + freebsd_runvars="freebsdbuildjob=${!envvar}" + elif [ -n "$FREEBSD_DIST" ] && [ -n "$FREEBSD_VERSION" ]; then + freebsd_runvars="freebsd_distpath=$FREEBSD_DIST/$arch \ + freebsd_version=$FREEBSD_VERSION" + else + local distpath=`getconfig "FreeBSDDist"` + local version=`getconfig "FreeBSDVersion"` + freebsd_runvars="freebsd_distpath=$distpath/$arch \ + freebsd_version=$version" + fi +} + create_build_jobs () { local arch