[kteam-tools][PATCH] cranky-test-build: Determine the list of supported arches from the ABI

Juerg Haefliger juerg.haefliger at canonical.com
Fri Jun 15 07:46:29 UTC 2018


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 <juergh at canonical.com>
---
 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
-- 
2.17.1





More information about the kernel-team mailing list