From patchwork Fri Jun 15 07:46:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juerg Haefliger X-Patchwork-Id: 929818 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 416Xcg53lYz9s2R; Fri, 15 Jun 2018 17:46:43 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1fTjRK-0007Z1-No; Fri, 15 Jun 2018 07:46:34 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1fTjRI-0007Yv-Rw for kernel-team@lists.ubuntu.com; Fri, 15 Jun 2018 07:46:32 +0000 Received: from mail-wr0-f199.google.com ([209.85.128.199]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1fTjRI-00007x-KQ for kernel-team@lists.ubuntu.com; Fri, 15 Jun 2018 07:46:32 +0000 Received: by mail-wr0-f199.google.com with SMTP id z69-v6so5598030wrb.20 for ; Fri, 15 Jun 2018 00:46:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=NIUc+lKhoLOnn3Ep75iKxtlFF+ycxBqqBeHIzIpZo9M=; b=ncuJqj7ZTPjcyMHPWPz6+Qoy6CrVihx1uWm9vafbZg/mmzEJKVvJPSqZ3HntoH3Nvz stxU2tTD9va24O5qy2v/L1xaI3J+iREdmegYqO3YjXV7HCz9pNxifRjpTDJL8Eu0Xcrk pHiOHs/59vhCp78j/aN87TKkRj7nrojN4yjvVmGig9RsVTRpLO6f8AaBcpmmK1drkzB9 7YCjLfuelEcWEehB65nNaHat7QrbVsZP5ieGrw1v1mtyQMG3lh4rc9nzxSu1hY2k53sk UJzIK4bDGsNAz7h1prTRhIyXLaYiDyHKzaMLU8wK65vUmqnq1qR9/lHCy1DGzq8AqJbO 41dQ== X-Gm-Message-State: APt69E0eNNl9+GiECjUoqk7t7nlqjfVtO3k85h8+1FIIamp95wuNgL9y CvYEt9+wDw8wIwSyZNJrjCxX6r0B7p2vvMPl1DA0YMc5bZDGLcM93cyqea29flEo1ozZMVA3W2N 2fcnqAVbKRBP/1PbirJ7UfYe0MjcLybtzjb7N39Pw1A== X-Received: by 2002:aa7:d60f:: with SMTP id c15-v6mr919235edr.301.1529048792169; Fri, 15 Jun 2018 00:46:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJbh5ZIzbrHBgnvX2MQap0gcpZXo4LyTzbno1Xm2/quAW+K9C7jYAAhy6eEdizh1B+KDQEnBQ== X-Received: by 2002:aa7:d60f:: with SMTP id c15-v6mr919231edr.301.1529048792035; Fri, 15 Jun 2018 00:46:32 -0700 (PDT) Received: from localhost.localdomain ([81.221.205.149]) by smtp.gmail.com with ESMTPSA id r22-v6sm2812495edq.40.2018.06.15.00.46.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jun 2018 00:46:31 -0700 (PDT) From: Juerg Haefliger X-Google-Original-From: Juerg Haefliger To: kernel-team@lists.ubuntu.com Subject: [kteam-tools][PATCH] cranky-test-build: Determine the list of supported arches from the ABI Date: Fri, 15 Jun 2018 09:46:29 +0200 Message-Id: <20180615074629.14971-1-juergh@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" debian.master/config/ might contain stale configs for arches that are no longer (or not yet) supported. So query the ABI directory instead which contains the truly supported arches. Signed-off-by: Juerg Haefliger --- cranky/cranky-test-build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cranky/cranky-test-build b/cranky/cranky-test-build index 64d699c36680..1c9f41625ebb 100755 --- a/cranky/cranky-test-build +++ b/cranky/cranky-test-build @@ -164,7 +164,9 @@ if [ "${series}" = "UNRELEASED" ] ; then fi # Get the list of supported architectures -readarray -t all_arches < <(git ls-tree "${commit}" "${debian_d}/config/" | \ +abi=$(git ls-tree "${commit}" "${debian_d}/abi/" | grep ' tree ' | \ + sed -e 's,.*/,,') +readarray -t all_arches < <(git ls-tree "${commit}" "${debian_d}/abi/${abi}/" | \ grep ' tree ' | sed -e 's,.*/,,') if [ "${arches[0]}" = "all" ] ; then