Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E056BC5DF9D for ; Thu, 22 Oct 2020 17:09:17 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 55D912464B for ; Thu, 22 Oct 2020 17:09:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=xenproject.org header.i=@xenproject.org header.b="N2TvamoV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 55D912464B Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=xenproject.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.10595.28240 (Exim 4.92) (envelope-from ) id 1kVe5F-0002Eq-Gq; Thu, 22 Oct 2020 17:09:01 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 10595.28240; Thu, 22 Oct 2020 17:09:01 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVe5F-0002Ej-CY; Thu, 22 Oct 2020 17:09:01 +0000 Received: by outflank-mailman (input) for mailman id 10595; Thu, 22 Oct 2020 17:09:00 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVe5E-0002Eb-7k for xen-devel@lists.xenproject.org; Thu, 22 Oct 2020 17:09:00 +0000 Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id dfec223b-9a9f-4bac-8dd4-dfbb138bdaa5; Thu, 22 Oct 2020 17:08:59 +0000 (UTC) Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVe5C-0005sw-UZ for xen-devel@lists.xenproject.org; Thu, 22 Oct 2020 17:08:58 +0000 Received: from iwj (helo=mynotebook.example.org) by xenbits.xenproject.org with local-bsmtp (Exim 4.92) (envelope-from ) id 1kVe5C-0005Tq-TA for xen-devel@lists.xenproject.org; Thu, 22 Oct 2020 17:08:58 +0000 Received: from [172.18.45.5] (helo=zealot.relativity.greenend.org.uk) by mariner.uk.xensource.com with esmtp (Exim 4.89) (envelope-from ) id 1kVdiG-00059e-L7; Thu, 22 Oct 2020 17:45:16 +0100 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVe5E-0002Eb-7k for xen-devel@lists.xenproject.org; Thu, 22 Oct 2020 17:09:00 +0000 X-Inumbo-ID: dfec223b-9a9f-4bac-8dd4-dfbb138bdaa5 Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id dfec223b-9a9f-4bac-8dd4-dfbb138bdaa5; Thu, 22 Oct 2020 17:08:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=jomMV8uxLbcen1kF7hY6ev+qMAIxd7EdISVfjmqx5yM=; b=N2TvamoVcy3UV9381dfufm20ym w3ylL5ogO+Ryu0b6CCn0GtVCxiuXzqvNVFuTXpRoBfZCwjR/kKaq2ncideCTRWr3wXnGo5EekXx+4 sXBT6v+zLG0p2NMkJrqUUevymK/hQ1C1HenDso0mEtKz4N0gYCJg9LHr8+wnuiHxG6lM=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVe5C-0005sw-UZ for xen-devel@lists.xenproject.org; Thu, 22 Oct 2020 17:08:58 +0000 Received: from iwj (helo=mynotebook.example.org) by xenbits.xenproject.org with local-bsmtp (Exim 4.92) (envelope-from ) id 1kVe5C-0005Tq-TA for xen-devel@lists.xenproject.org; Thu, 22 Oct 2020 17:08:58 +0000 Received: from [172.18.45.5] (helo=zealot.relativity.greenend.org.uk) by mariner.uk.xensource.com with esmtp (Exim 4.89) (envelope-from ) id 1kVdiG-00059e-L7; Thu, 22 Oct 2020 17:45:16 +0100 From: Ian Jackson To: xen-devel@lists.xenproject.org Cc: Ian Jackson Subject: [OSSTEST PATCH 12/16] Introduce guest_mk_lv_name Date: Thu, 22 Oct 2020 17:45:02 +0100 Message-Id: <20201022164506.1552-13-iwj@xenproject.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201022164506.1552-1-iwj@xenproject.org> References: <20201022164506.1552-1-iwj@xenproject.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This changes the way the disk name is constructed but not to any overall effect. Signed-off-by: Ian Jackson --- Osstest/TestSupport.pm | 9 +++++++-- ts-debian-install | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 5e6b15d9..12aaba79 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -76,7 +76,7 @@ BEGIN { target_jobdir target_extract_jobdistpath_subdir target_extract_jobdistpath target_extract_distpart target_tftp_prefix - lv_create lv_dev_mapper + lv_create lv_dev_mapper guest_mk_lv_name poll_loop tcpconnect await_tcp contents_make_cpio file_simple_write_contents @@ -2177,6 +2177,11 @@ sub guest_var_commalist ($$) { return split /\,/, guest_var($gho,$runvartail,''); } +sub guest_mk_lv_name ($$) { + my ($gho, $suffix) = @_; + return "$gho->{Name}".$suffix; +} + sub prepareguest ($$$$$$) { my ($ho, $gn, $hostname, $tcpcheckport, $mb, $boot_timeout) = @_; @@ -2205,7 +2210,7 @@ sub prepareguest ($$$$$$) { # If we have defined guest specific disksize, use it $mb = guest_var($gho,'disksize',$mb); if (defined $mb) { - store_runvar("${gn}_disk_lv", $r{"${gn}_hostname"}.'-disk'); + store_runvar("${gn}_disk_lv", guest_mk_lv_name($gho, '-disk')); } if (defined $mb) { diff --git a/ts-debian-install b/ts-debian-install index f07dd676..8caa9d76 100755 --- a/ts-debian-install +++ b/ts-debian-install @@ -100,7 +100,7 @@ END my $cfg= "/etc/xen/$gho->{Name}.cfg"; store_runvar("$gho->{Guest}_cfgpath", $cfg); - store_runvar("$gho->{Guest}_swap_lv", "$gho->{Name}-swap"); + store_runvar("$gho->{Guest}_swap_lv", guest_mk_lv_name($gho, "-swap")); } prep(); -- 2.20.1