| Message ID | 20260901115827.1047272-1-Hemanth.KumarMD@windriver.com (mailing list archive) |
|---|---|
| State | Changes Requested |
| Headers |
Return-Path: <libc-alpha-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 949974BA79A4 for <patchwork@sourceware.org>; Tue, 1 Sep 2026 11:59:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 949974BA79A4 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=windriver.com header.i=@windriver.com header.a=rsa-sha256 header.s=PPS06212021 header.b=UQ3yRBar X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by sourceware.org (Postfix) with ESMTPS id 030694BA9001 for <libc-alpha@sourceware.org>; Tue, 1 Sep 2026 11:59:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 030694BA9001 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=windriver.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=windriver.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 030694BA9001 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=205.220.178.238 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1788263950; cv=pass; b=SYdQGiGbBjx1L8t+ZxxqMv+8s/RgqpRIB3Oxw+g/WkidVD08aC4Q2omKECw2H6jafupThbnFKdITvH0zqEk6T6uVkMySc8u4Ujk5uuw/bo8jzgXyNX3iqAKMnfl+mkmT4w5RAkzdmFB+Pbm9zbdY0Pq+Hywrrt2lSCSFu7QEcdo= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1788263950; c=relaxed/simple; bh=RzM5LieuRqXKaNfRDQoz/waaga26eu4GYEXu+9h8OfM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=XQd40OjNgYJpKc3Kg0NqVV71TkAWHfENhm5Mpy4e1G9BfAnaiMLbHEqY1VyDzQq3UXwJC1n2X91OL6TnfmyAoaJehkd0l3OC16JlBjXt4RsUALuqmTsJeZB6XgZF1xdIPB+z0lb60Cx1GyMetqL7PII4Ouv9IfPrPf13ybVLbSw= ARC-Authentication-Results: i=2; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=windriver.com header.i=@windriver.com header.a=rsa-sha256 header.s=PPS06212021 header.b=UQ3yRBar DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 030694BA9001 Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 681AKNAl1953247; Tue, 1 Sep 2026 11:58:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :message-id:mime-version:subject:to; s=PPS06212021; bh=faChqPjcD xFQgSauxJMuOPGEhZfn3F5nOiamISgo+y0=; b=UQ3yRBarq82aOPlYgpJQrLvqy owqtJAXlGlcFuwwVv1RRSNlxuFt+a6nRp5UGVwweiDMsTNsPL6nSWMra/v46KrBB AQb8KpXVd6QMhdEXSA+VHThjDT43CAUGB6uU6id3TlR021Zzm4QfzhxkasFj0wUo gCGfGoklReW0a1fgFG+D0dM7WPA74WKZzAKUoMpmVi+wvD8nADsWR+LDmje64Z7n RFke8GrUItvkmHfJdSJfqGOeAx+c7rSLDZ8EdOnAIJzpkufAO8qlN4EfdOWefA7H mdhbaDGEHYOxhGRfdgx7E2vSka2xYLnD+xWRjBnPFHCdz9vZNfAIpkpqsLbkg== Received: from ph0pr06cu001.outbound.protection.outlook.com (mail-westus3azon11021100.outbound.protection.outlook.com [40.107.208.100]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4gbmn0mcqs-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 01 Sep 2026 11:58:57 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EEgeUtYzhaRyhiLiIsvD+zNm2ACgHmO63EB7gdvcNbLLKVxqG0Lv/qeQpSWlAdohLxMgBs4ULdTkDar6qmyQUSaIvKgI9yJB65PLpSoYj19/A3Ch38vyBJ7Z+VupxD5N5og1JiC6hB9oY1yyOLWbaAVcLiUPwz0wzx1Qv9ywsiTYyFL4GAI7LiX57h5SmKSILeUa7LWQUDXEZq9R6jkxgCx2n4XWP2Hi+z5LgijWnFrQ6AHuA80ew27V8seOJmTXYZtbyxxRftIhmJpe+J/buIhBnUIi8oDkcHjO8JMobd5/a/ze/ez3UwjM5jTvk17dtXh2lS98WTEf9gPnTvtqnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=faChqPjcDxFQgSauxJMuOPGEhZfn3F5nOiamISgo+y0=; b=rO4i9bg/lXPv+0qNmfU2IMrFqhh/8Fh+13KdBHvFykUR6O1ZfNR95aHgknXQ3Y+0NABw3sv0W3GfLjiZnH54BohR5A+rQoEg04h+jopMx8T7HYDTqVRlYlCrhh7Y2wfISKSBB1QGUYDqq1rKwHy+wMddwMqZSbOAAmjVr0HPhgVl4v9Ehqo3at2mQ4zxFQhK9hYzsdU7Ije1i0cdMhfRZkEoo/cuDPalmo/H8y6ZReo9a1SWqN4DBT2KNd3wVOYfTXLobAf5nH1dc0w+XZtKybHEkGYWkdjnP9LghovfzfAAAviQR0X6+s5rmByi2z0wkNuKFgMX/QwkuHzP+WX1TA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DM6PR11MB4564.namprd11.prod.outlook.com (2603:10b6:5:2a0::7) by DS0PR11MB7335.namprd11.prod.outlook.com (2603:10b6:8:11e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.13; Tue, 1 Sep 2026 11:58:43 +0000 Received: from DM6PR11MB4564.namprd11.prod.outlook.com ([fe80::21dd:5cab:fc47:1dfe]) by DM6PR11MB4564.namprd11.prod.outlook.com ([fe80::21dd:5cab:fc47:1dfe%4]) with mapi id 15.21.0360.008; Tue, 1 Sep 2026 11:58:43 +0000 From: Hemanth.KumarMD@windriver.com To: libc-alpha@sourceware.org Cc: carlos@redhat.com, Sundeep.Kokkonda@windriver.com, SunilKumar.Dora@windriver.com, Hemanth.KumarMD@windriver.com Subject: [PATCH] nptl: Skip pretty-printer tests without python3 [BZ #34507] Date: Tue, 1 Sep 2026 04:58:27 -0700 Message-ID: <20260901115827.1047272-1-Hemanth.KumarMD@windriver.com> X-Mailer: git-send-email 2.49.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY3PR05CA0028.namprd05.prod.outlook.com (2603:10b6:a03:254::33) To DM6PR11MB4564.namprd11.prod.outlook.com (2603:10b6:5:2a0::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR11MB4564:EE_|DS0PR11MB7335:EE_ X-MS-Office365-Filtering-Correlation-Id: 3abe507c-36b0-4c8f-2b76-08df08205e94 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|23010399003|52116014|376014|6133799003|5023799004|18002099003|56012099006|11063799006|10067099003|38350700014; X-Microsoft-Antispam-Message-Info: rP1xpCUG+yO38IbiJ4mn1KoYbgNhmCCRCzxcRNrP/SMo7ukTfxr6G8FIMfpN0qBKvbmjsCaImoeTV9zzm3BfQO2KCeElEdQUINUOghofFpoVXToulpvJl6rbjIxhyrmCdIhPsWsWwK0yQAu7Wwn/xGbESQAZCcV/lJeuTx+RJf2l7UttNB82+icvXiuUcv93F2aLZPbU74I3SghE1j5xs91Yb0/laQP6lTtBChXdQTVNjNuSXr6yjD/NBQgrtoKzV4ZIe5CyQXi2cmbaxuxQrjqP6oBMYOs135cX5CHTJ2SmOWSmxEKPYxkTrY5n2nmkawFqx9CN3xFmDbGmUosY3+rAfn6UdVyal9DTG2JmHagYWWmZqsV5FglKNiTFPYwY3i3N9XoYbMmS2FKWkbjW0PyYjnwaC1i/N/JU56ntZYURR/2h2TB+11NL3+ih0gtW5Prl1SkOcKMbFFRVafXRCDikIm4Qk3kd78RaZkgf0rPgkwhaDiKhJrCYupME9Hrb4FLHEn2b7yasPgBUDJ4WZC3j8yUEdsIptcinOCT1vnhBKp4bxDPtwi5T4lNaiATYJeaWnDSYRoCvo6/2z8xQnWSbotIcrUkpn5lIsNBUHCCER4g5PCtmW/uXR4EzBb1H6jZEf3cGw94t1SFmUCkj2wOapKJa9VRJJqc+/XFnjO626y31YnJ0AZrez2pw1kuqxxmu3IJODc/ef1recDtLV4nXByHKpfmoENWfWqtr588= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB4564.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(23010399003)(52116014)(376014)(6133799003)(5023799004)(18002099003)(56012099006)(11063799006)(10067099003)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DPm/iOT1xoYxaQKDkR0NOWSf3QQ3F6zC/tkuewZ9oMKWDzEaa0EXdcxNb1h2pnlzOiBpdedLzSvU3DD3k6+tb6dR9j5c/bQzi4vSRk7Kjuigb1SQfMTqKZN4jesBSD/nQbv7zMMANoTc8XYStdcdwaPC39ZGHqowh/bUFIa2YMC2NPEFvOsvYkxZXFlltv9iaATrRwB3cZn0z63KBKP0Ys6As/mjLTcFDTXamCmPx/38agrevkqpEyZVmKdiLuwN12YRbRySq2CQtKwOyEY4fYP2XYNh+Ls3asj+dsxK+sAlHtX6CgPDkoL194FaHpCDRs2qWnD5Y4R83j1W2bDt5OCy8X+pQhRy9Do746uMm/QKJ3N9+AKsP4Mg6wiUYwFgp8Sl4LANrO0PMIDR4xfYl9ujAV0sgeAJgZRbv6PGQT/GpkzcfO2F3436cwr3QLLq+HLf6++jzj5/eHaAVDmZS0l6v2e0SWGspuR8Sk9ICZVBtjKdt7z/Vvkx7LAucK5gsfVDP2F1pMMNWYyA85L4V7ciN0ImLSaUjf5Ph9zZwSA2GMfyML5y+aO8pJ+zyN1lLY+bq+tDvdUezypJUMAB+sFXUsNQ6n8mu5xCrzUQSTPD0UPyc3hd3ZBJzRe199xh4nhOrmDuU5mnwxR0hQ1Sg+jwYrEM0V1PR9dC352J4QXaRfVHxdo42af8K4JLk2C+qsLF6RT20WweR0WRSJaTGu4+5b3qZs25dte3eP0Lu/hnzZvJahjk3bMiHtpCC3tIY2BjE9HJffvtt/DsKcl2zpzr2VSMrankbcKARO8Gid00K21rmLrIxega9eTmrZVf7w3U2BEa5+nMT1mcqV+wBUwQyMavLHcOz/VIsDVTzIWgKEWDIiobj4aTUd0i1M6Lc0WlEBLZTBpk9G7AtzCoN/cqbZ3raWt+9tMLZrEvAwKm2bOfqi3FYPWi/1Izdd9UPvz2TG500UtaBMNsBdqt3U59actuiB1Ynz9G/SjiKZuiAVT60O0kGV7dHOMp6FXhr7s8+0bpzfegcjQxdTXfQIDqYKeCg98TAZjst8oN7Mlw4x7zbSsL1ecERIZz5j5Fb63I/4gWHi/NW420+ZbZa1XAEDxOL9G+FpGTJ6584VSrWLQBExSGRSKBhPMjhdogoa8Qk0uaL7WDzT2Pyb1A/NVI0iKcwTQlZZVsxFGMYR5A5fl0uKmBjfwbFp/oFpXbakVNeipkleStlNouXVoc+F0jC54GNYvxA+uE6kY6FRwGTqmion2PiQYKKTv+Z3Ixx26bBnWxjbWoXDWEa1xYa4HDBfsF4aRGUr5OKO64WvVdjB9aEnDkqOHyIgWw2WDmTSEn0dl7vSciz8L7eNoHueL1iTyMS0Hol+IMm0VQ/G82aZp+oET9c8HQMRclM19pPonRbyrJzLH9pfvjFhADDiKWXWkp3eFGkLcs9tvdWkuxfRODHcLZ3Usq3Dy/svNNRDF8yy1afCph8cAQazkmGCBJ0kF7XLqTseRK+9/Ys5ftL7z4DYkv+bltbeJFF5Faa8i1bBTEVqDGbW5rDNqJPponUvK4tzULVkYE+AynD+XOU6Or8sFT1u3HNQdIcRwRtlN6wixg/+o2Vxqp3JyewihXvWZqT5lnR6ZGTuHTWZF8XBU6ESVL6B8oY68InlF33usA1iNaWQiG8I4okhUaSdm7ZsSgNV/Oe/na0OFnfNejsCrNmz2LlQoMJFmWG/BA4T8VEuyFIN1Uahr3JlZsSY78DrJO8vtsFc0NPbjoALk= X-Exchange-RoutingPolicyChecked: rMYOUyXNYvTSoLMJ7wT8gAj3uuKAByrWma/ctZ+gp84vHsh9RHC6I3GKenSqdKVFMyimrRgbcp0PZDl1JVzCUSDTMPvByn0Mq7F9JOeFyR/9Rr1rBakAWUDPrPCt0biOVS51gJPmTvPj/qJLlCKrC60yNeOnHptJV/lkh7fUSG83mCwa1LM9lG/7Eq7s9wR0DLz/7qDNWaEEHJWbwbj0bDfr1iKLaXXZigDhbQIuwn+wKnIahynvO7nK//urG/PbYXdh2VnDKmeSJD5tHBhLza0nA+tk1jbNbv+gvUNWwhcKAhShz10veU3p20NCPwPkX2UdxMjT6ydnGM6zwUs1kw== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3abe507c-36b0-4c8f-2b76-08df08205e94 X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4564.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2026 11:58:42.9858 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: A/08BzqZzUkb6sBgmA2lH6uUCrk3gjDcQFn0dGGE7RupWp1yYBzNnAUhksAF7Hw8B5LqKUozGXCWARAHa2ip9hNH3NKdUVX5dEtdXLRKFeY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB7335 X-Proofpoint-GUID: 90Y2D_dpcOuD7GnwkOtjUweSUPQrp5LF X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTAxMDEwNiBTYWx0ZWRfX0avhQq9MtD4m WdM4mRYFxKPzbx19pN+277XmsF811lRatNm+BZJeJE3ckkBvL5imIfhhQqKQdFOTb3lGmmTSNKZ TgZ8BvbKMrHCiMU673hG1ATcj8fy+Sa+h0R81IEkmXI8EhyBvpfprPHOXyx0/mzqQ/NLu0B3CFF 2uDErzig6YfSUAffWl6UbtZw9Wo4nHP9Po4OKQMzPif0RRHbgvLnoFkqxh6RwZ3ssoITAj7taNS nhKn4YZhL55LWTuaXFygrDgubsTX+e3/MNkQNsOSZSAD5U5i75blIQtdRDNZnJmsbGoC8KIKdeb T++NAZy4AddG745f+h9FIxBjm4FqFQU1xGGOm4uWhNBs1BgrmcFkcf1djxQVCDxeWvpP3SrrIE9 mP/BhAt87a14ifajTsJuLxs6q7G14v6h4gmGeulTxHztu/dXpHmC1Obd3C8CUnrBMqQN/7+CnU2 xuL6q8yH7JRLYPn0XPQ== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTAxMDEwNiBTYWx0ZWRfX/zMtLd8NJgLY J9iapuPFhnYwPORCwu/GYy4nUMtciFe+JvX9mJch1WCD4NH1KB6SfN35iE65ld9EYfvQUUgTMre n1Uj8JI6hRNhqzSpAeXvsd8VpZG9cl9hPUjsqHRgTn7JrH6xiD3x X-Proofpoint-ORIG-GUID: 90Y2D_dpcOuD7GnwkOtjUweSUPQrp5LF X-Authority-Analysis: v=2.4 cv=aM/Ab79m c=1 sm=1 tr=0 ts=6a96be01 cx=c_pps a=EgTKCgcPzLllfVGnvYq9fA==:117 a=6eWqkTHjU83fiwn7nKZWdM+Sl24=:19 a=z/mQ4Ysz8XfWz/Q5cLBRGdckG28=:19 a=lCpzRmAYbLLaTzLvsPZ7Mbvzbb8=:19 a=xqWC_Br6kY4A:10 a=VdqzKS8jKosA:10 a=VkNPw1HP01LnGYTKEx00:22 a=bi6dqmuHe4P4UrxVR6um:22 a=klDOsUkWDRETUCZYPvoE:22 a=t7CeM3EgAAAA:8 a=czBC51wMTyc7Wu0hC08A:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-01_03,2026-08-31_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 spamscore=0 adultscore=0 impostorscore=0 clxscore=1011 suspectscore=0 malwarescore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609010106 X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
nptl: Skip pretty-printer tests without python3 [BZ #34507]
|
|
Checks
| Context | Check | Description |
|---|---|---|
| redhat-pt-bot/TryBot-apply_patch | success | Patch applied to master at the time it was sent |
| linaro-tcwg-bot/tcwg_glibc_build--master-arm | success | Build passed |
| linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 | success | Build passed |
| redhat-pt-bot/TryBot-32bit | success | Build for i686 |
| linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 | success | Test passed |
| linaro-tcwg-bot/tcwg_glibc_check--master-arm | success | Test passed |
Commit Message
Hemanth.KumarMD@windriver.com
Sept. 1, 2026, 11:58 a.m. UTC
From: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com> The tests-printers-out rule in Rules runs $(PYTHON) through $(test-wrapper-env). Unlike ordinary tests, which wrap a freshly built target binary, this wraps python3, a build-host tool. The wrapping itself is intentional: the pretty-printer tests drive gdb against the built test binaries, so they must run wherever those binaries can execute. When cross-testing with test-wrapper set (e.g. via scripts/cross-test-ssh.sh) the whole command is forwarded to the target. If the target lacks python3, the remote shell exits with status 127 and evaluate-test.sh reports the six nptl pretty-printer tests as FAIL instead of UNSUPPORTED. scripts/test_printers_common.py already exits with the UNSUPPORTED status (77) when its dependencies (gdb, pexpect) are missing, but that check is unreachable when the python3 interpreter itself is absent. Guard the invocation with a "command -v" check so the recipe exits 77 (UNSUPPORTED) when $(PYTHON) is not found in the test environment. Note that this checks for the interpreter configure found on the build host, which may be an absolute path; if it is not present at that location on the target, the test cannot run as invoked, so UNSUPPORTED is the correct result. Native builds are unaffected, as configure requires python3. Tested natively on x86_64-linux-gnu (make check; the pretty-printer tests continue to PASS) and by cross-testing via scripts/cross-test-ssh.sh to a target without python3 (the six tests now report UNSUPPORTED instead of FAIL). Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com> --- Rules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Comments
On 01/09/26 08:58, Hemanth.KumarMD@windriver.com wrote: > From: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com> > > The tests-printers-out rule in Rules runs $(PYTHON) through > $(test-wrapper-env). Unlike ordinary tests, which wrap a freshly > built target binary, this wraps python3, a build-host tool. The > wrapping itself is intentional: the pretty-printer tests drive gdb > against the built test binaries, so they must run wherever those > binaries can execute. > > When cross-testing with test-wrapper set (e.g. via > scripts/cross-test-ssh.sh) the whole command is forwarded to the > target. If the target lacks python3, the remote shell exits with > status 127 and evaluate-test.sh reports the six nptl pretty-printer > tests as FAIL instead of UNSUPPORTED. > > scripts/test_printers_common.py already exits with the UNSUPPORTED > status (77) when its dependencies (gdb, pexpect) are missing, but > that check is unreachable when the python3 interpreter itself is > absent. > > Guard the invocation with a "command -v" check so the recipe exits > 77 (UNSUPPORTED) when $(PYTHON) is not found in the test > environment. Note that this checks for the interpreter configure > found on the build host, which may be an absolute path; if it is > not present at that location on the target, the test cannot run as > invoked, so UNSUPPORTED is the correct result. Native builds are > unaffected, as configure requires python3. > > Tested natively on x86_64-linux-gnu (make check; the pretty-printer > tests continue to PASS) and by cross-testing via > scripts/cross-test-ssh.sh to a target without python3 (the six > tests now report UNSUPPORTED instead of FAIL). > > Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com> > --- > Rules | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/Rules b/Rules > index 71495028fb..06604b41a5 100644 > --- a/Rules > +++ b/Rules > @@ -467,8 +467,9 @@ py-env := PYTHONPATH=$(py-const-dir):$(..)scripts:$${PYTHONPATH} > # The pretty printer files and test_common_printers.py must be present for all. > $(tests-printers-out): $(objpfx)%.out: $(objpfx)% %.py %.c $(pretty-printers) \ > $(..)scripts/test_printers_common.py > - $(test-wrapper-env) $(py-env) \ > - $(PYTHON) $*.py $*.c $(objpfx)$* $(pretty-printers) > $@; \ > + $(test-wrapper-env) $(py-env) sh -c \ > + 'command -v $(PYTHON) > /dev/null 2>&1 || exit 77; \ The configure expands $(PYTHON) to 'python -B' and command -v takes a single operand. It seems work on most shell today, but I think it would be better ensure the command existence test is done with $(firstword $(PYTHON)). > + exec $(PYTHON) $*.py $*.c $(objpfx)$* $(pretty-printers)' > $@; \ > $(evaluate-test) > endif >
diff --git a/Rules b/Rules index 71495028fb..06604b41a5 100644 --- a/Rules +++ b/Rules @@ -467,8 +467,9 @@ py-env := PYTHONPATH=$(py-const-dir):$(..)scripts:$${PYTHONPATH} # The pretty printer files and test_common_printers.py must be present for all. $(tests-printers-out): $(objpfx)%.out: $(objpfx)% %.py %.c $(pretty-printers) \ $(..)scripts/test_printers_common.py - $(test-wrapper-env) $(py-env) \ - $(PYTHON) $*.py $*.c $(objpfx)$* $(pretty-printers) > $@; \ + $(test-wrapper-env) $(py-env) sh -c \ + 'command -v $(PYTHON) > /dev/null 2>&1 || exit 77; \ + exec $(PYTHON) $*.py $*.c $(objpfx)$* $(pretty-printers)' > $@; \ $(evaluate-test) endif