From nobody Mon Feb 9 16:02:10 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=1556819685; cv=none; d=zoho.com; s=zohoarc; b=ofAogFSBTnlylk2DIsJT50d97e23YGC3GQc228zcf8aflAmXrJ96YfuJFdVmcKkQ9uYN7aXk+5jNyqee740sv5lp8Bx34EuFOTCEKrCx28vrAFGI2A2VOR7pPm4IKCTQvYDXs1J8V8zWj+nSGnKWcssNojIKzBJmzDGZtQ75uD4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556819685; 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=TW2E2fMHUmH+Z5j+zZmporP4G1+SwOymmD9HNy0Cc4I5pfQqhyJ8TahWBYDrQxLljHXCBsM0xN7i8QB/B7wVwp65wGVyVu87FxDo7g589pcFIUWhXT4TwYmY98a1VwgzaNKnzQ8m0tKyR26ua/ut7QnP02Y4s8GBJSgb4xboEd4= 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 1556819685144210.0233081190837; Thu, 2 May 2019 10:54:45 -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 1hMFtS-0006hX-D4; Thu, 02 May 2019 17:53:14 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMFtQ-0006gq-Sd for xen-devel@lists.xenproject.org; Thu, 02 May 2019 17:53:12 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 2729a1ba-6d03-11e9-843c-bc764e045a96; Thu, 02 May 2019 17:53:12 +0000 (UTC) X-Inumbo-ID: 2729a1ba-6d03-11e9-843c-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,422,1549929600"; d="scan'208";a="84983437" From: Ian Jackson To: Date: Thu, 2 May 2019 18:42:34 +0100 Message-ID: <20190502174238.23848-6-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190502174238.23848-1-ian.jackson@eu.citrix.com> References: <20190502174238.23848-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 5/9] 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