From nobody Mon Feb 9 03:29:24 2026 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1556902895; cv=none; d=zoho.com; s=zohoarc; b=jSvNUMfGRk5qnhx7kPd+HtvcvnpxHJEBcOTxXb/zHNEN1/UMjMKye5NjhmX2/rJz09bZ8pXL/uYeQlvB2Eq9T5aIih1bZdv6RgMecWidP94HGd28aJMykOAVgLUPcbD3LTXxVS2+RQKNRrpwAruSwCAh4kxY5ZNnPiwkDGEyOFo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556902895; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=HPE/3Wpb57Kbi7JfEhJ+T9XXV5SOi5mGUOb1WEWoGKo=; b=NkT7jmJelZibgGXqOQlaR9hVuIu0xS8w+0QQQJN00+CL8CADQ+9tmklv2zRYS295ezS6xayJYfrHWSifOCQjSWugFTORZqakUcIwZk3Z/aFvl15j6iAFvHPA6uHzAhQnTIHdn/Rm5CiQdKM90ChrbNXLlGCrYIzcbFQz6EZwAK0= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1556902895446301.4911613801785; Fri, 3 May 2019 10:01:35 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMbXl-00088R-JZ; Fri, 03 May 2019 17:00:17 +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.89) (envelope-from ) id 1hMbXk-00086o-4i for xen-devel@lists.xenproject.org; Fri, 03 May 2019 17:00:16 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e58115a2-6dc4-11e9-9293-077e3ee12d0c; Fri, 03 May 2019 17:00:06 +0000 (UTC) X-Inumbo-ID: e58115a2-6dc4-11e9-9293-077e3ee12d0c X-IronPort-AV: E=Sophos;i="5.60,426,1549929600"; d="scan'208";a="85085336" From: Ian Jackson To: Date: Fri, 3 May 2019 17:59:51 +0100 Message-ID: <20190503165957.5960-6-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190503165957.5960-1-ian.jackson@eu.citrix.com> References: <20190503165957.5960-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 05/11] mg-repro-setup: Break out compute_adjusts X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" No functional change. Signed-off-by: Ian Jackson --- mg-repro-setup | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/mg-repro-setup b/mg-repro-setup index c8bcad33..10ab65a8 100755 --- a/mg-repro-setup +++ b/mg-repro-setup @@ -54,7 +54,6 @@ set -e -o posix =20 mgexecflags=3D() adjustsets=3D() -adjusts=3D() allocs=3D() logfile=3Dtmp/mg-repro-setup.log duration=3D28d @@ -104,14 +103,17 @@ adjrunvar () { delrunvar "$1" adjusts+=3D(runvar-set "$job" "$1" "$2") } - -for arg in "${adjustsets[@]}"; do - case "$arg" in - !*|^*) delrunvar "${arg#?}" ;; - *=3D*) adjrunvar "${arg%%=3D*}" "${arg#*=3D}" ;; - *) bad-adjuistset-pattern ;; - esac -done +compute_adjusts () { + adjusts=3D() + for arg in "$@"; do + case "$arg" in + !*|^*) delrunvar "${arg#?}" ;; + *=3D*) adjrunvar "${arg%%=3D*}" "${arg#*=3D}" ;; + *) bad-adjuistset-pattern ;; + esac + done +} +compute_adjusts "${adjustsets[@]}" =20 while [ $# -ne 0 ]; do arg=3D$1; shift --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel