From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 26 Oct 2026 13:19:15 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qv1-f64.google.com (mail-qv1-f64.google.com [209.85.219.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 69QCJCBe010639 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 26 Oct 2026 13:19:13 +0100 Received: by mail-qv1-f64.google.com with SMTP id 6a1803df08f44-91bebff9fcasf106966556d6.2 for ; Mon, 26 Oct 2026 05:19:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1793017147; cv=pass; d=google.com; s=arc-20260327; b=kDxAPB1gl8c5REjTc0UnEiFwEbjTzoCLhTiynLT6LNgVvIM/1J2yk2CJvgoQVtMC4W SsJv4vAa0+ERavq9TlZnfAd8Czm+u2n5RXJos+wXRvVoSMK6Ocf0APpyl5m5TaKOYvI6 4hqQrs9PmBH4rE430pI1P0EPFVXWJWZTrcIe4c/tDYsIOfJ8DWzod+WUEzERlptcOB2t fBKYntOXVIlq+aszr5XgXb0H5EWnbczaXN4mGVliC5XwtNjLyQOjtJ/+CqEBFmihKh5S Bqwey3B/jBsc6xCUuSvtYXk+2O1Vzc1diTDHhO9xY46caRxvnl/PFQNM75+VCRR411f7 nmPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bOZYrQIAOj8kSY9dtvLIeL1a5WMAly6RgbI0xs+28zc=; fh=o5zKv3AzXigfFp/71DTKGwQ1vbd3QJf0Ew8bYRCteYg=; b=QIN2dE8H6Vm5NZHTS9D7mipuzD0+o2XTmLPnSwjAFQAcptV1ndFb9xgdMF1mGwO9GP JmoBfA80cwpIOGw95sPMo6MP++r5iRWgE1qSOWBfiB7az5rQupqTNe9eHEZ1jM6IkfwN I494VuGS7Ch51eNLi8/pvBKVyCz20bXaoz8xk+G/swY/Oq2vB4guhU9DfqAFt4tct7No LQiE2cvdC7BU5I/BK1nz21WeWwllwgTFfDs//6OUyiyKm/Av7dHdZYBmVpS3zQ1aHdBM 0VKLbo9dYIlo+xQENvkwQes8DzwIKZz95pSD1BvvUmAj6iDvVoJoETlrpR5lX+xxlrtp Kg1g==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=DdApXwgt; spf=pass (google.com: domain of fm-1047747-202610261219046bc157b9d6000207ce-uzqwux@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-1047747-202610261219046bc157b9d6000207ce-UzQWuX@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1793017147; x=1793621947; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-type:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=bOZYrQIAOj8kSY9dtvLIeL1a5WMAly6RgbI0xs+28zc=; b=vFRYL9FavJCQWW1/+nkfKv97EpDeifvHRXoAsdxoRyxcki0TzIBplIawGBIOXYjv2f 2maC1xMkq0KFAc3yTexF3rj1lZ/DSN79ZhkyreMc0zSvoQYXmyJoYe7VD3n+XldJ9oJD IOgpFs57BxltA/mVv1mYDpCf3nXUW8zfv3S56d/P8kXlVDmvhZAqEAvrCoE4xVx/ssjC qwtXYRXGbr0nuG82Bgy0NGOU9EItXflaQ/N0UhuQmieipA0+uoFyUhjHK0MjnXFSrUqF H3HPD1gPkoKYTUwLtvg+eaKKcbQyTsfk00ZhujBitjhVG3XVMVZcLfRABk7eMDLdrLpq 09pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793017147; x=1793621947; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :content-type:reply-to:x-original-authentication-results :x-original-sender:feedback-id:mime-version:message-id:date:subject :cc:to:from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=bOZYrQIAOj8kSY9dtvLIeL1a5WMAly6RgbI0xs+28zc=; b=gEeOgPzAes4MiJIaqdg+loj8rP/GGjkZzQZg1ptvjPMtFewAeFjK9XkpOQeDssim31 Q8A+E25rb85ZaFLHrgWO4Gw64HQ+V8bciz8gUc/wyJb6zOUsoPHwBZlND/EjaEytfGVo asfzGGxPWTP5ZoVocH1I9SbE+l+NUWcEotjfkbhgSYFUvEirrW+JmtpYs5OApTIhgKyS GAdrgLlBy1JbFJS+Z513CVcaMr+/qjjBIzi+3zSfdVChfarkRlbyLT6MJhMMAnIbqyYl KfYrc0urbAkQcsvR2IpZpkHmSaQxYN7NXUY98EYhk8tUD1iGSW0CbXLeRgl6P9KlnU0L Xafw== X-Forwarded-Encrypted: i=2; AKwUvBzCsT+S4gVGVBrK2vmE9jo/unE/UM1SDUhAnzbovYofM5CXiiwaKwPw/ZFrOXxaoJwXgg1L@ilbers.de X-Gm-Message-State: AFq9FYJ7v7qrFmW4rcGxAeplKp9CBZHQJgwZDQtsYEM8L9tDju1gDLVB UMOJpIAMUqPI4VIKrqC5DUYzGG1/SbLh+0q8iHx5iLKExCSram0aSWd5 X-Received: by 2002:a05:6214:5c45:b0:91b:8870:3930 with SMTP id 6a1803df08f44-91c48e76cf4mr105157546d6.45.1793017147164; Mon, 26 Oct 2026 05:19:07 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ATskLdfJNz0zJNON2lXflP5zrX0xwIMgmhPrf2Tg1syHoO5/qA==" Received: by 2002:a0c:e649:0:b0:91b:d012:b7d2 with SMTP id 6a1803df08f44-91c37e007f8ls83466026d6.0.-pod-prod-02-us; Mon, 26 Oct 2026 05:19:06 -0700 (PDT) X-Received: by 2002:a05:620a:25cf:b0:93e:5dcb:eb9b with SMTP id af79cd13be357-940ef959ce6mr919424585a.42.1793017146244; Mon, 26 Oct 2026 05:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1793017146; cv=none; d=google.com; s=arc-20260327; b=OyVEKa52NdxHPR6o6RHLcH1/uEdxo2T6NfqJLdjt0U2FeTFvbFpvaDAqrKDXYGO3Zv Y0iaB11oyxecsfaF1weuLLdRK50VskUOatvvzaXlZh/V0/UkECJXkNo8N/+kgftzFcuK UZHkKuXTgeE5jBmpQsLPbboq4VZC/pPdgtzkO6nO0T6RTptOho+e8W/8jySEduR3H51d Hcf+KXS6cgpHI0yoKk7q5lWyzJyWJUVsgknhGSRag16SdilLL0Cvv4Mlhor4wlSRndXt S3bls0bPWQMx2ZsipDZ9OUDuS7j0oyJpYzM1R8QqEVFQP2oZsHtbmYkfKEDkqXsGjzyZ O5oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:cc:to:from:dkim-signature; bh=yDzXOoeiZPocHcIIB1zNc1ABNLTEWHPulwNBk0umguI=; fh=AqT8zD6jUs4YP+XkSwmnbRYu3wrat9Vyg/xvm1MGQCM=; b=jOfXrsRN490QzisBM9GUj1rePPkbXoRqWcAnXVn29VyEMp0pcy13L2CMD3rRa/QlOu Nlvv49sj+u7tl5cxjyjAa8YmMaJEuxzmkesM++0eM9UNAH04M3rHF/tuMoyAIHL7Hdp9 4ear1swTnvJLexosJTnmUfJLnHr+FJcfsLLwNaSomQkdphUVsOd3RHdyrgQzCSxnn9kn cXmW7OXvah1qd7h0Lkh0J3CS17ROxyJ5cb+AyFkCdSu0HR5dpPXwlTkfk7Fnj64UMiB1 4u0D/Hh6nqf0ZEfGodWR5MjeVvFr3wn1Z3W7IlhvB6UJ9eA8SLKA7tZjua7p5WaMKpSO 04tA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=DdApXwgt; spf=pass (google.com: domain of fm-1047747-202610261219046bc157b9d6000207ce-uzqwux@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-1047747-202610261219046bc157b9d6000207ce-UzQWuX@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net. [185.136.65.226]) by gmr-mx.google.com with ESMTPS id af79cd13be357-940f01bdef7si13920885a.2.2026.10.26.05.19.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Oct 2026 05:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1047747-202610261219046bc157b9d6000207ce-uzqwux@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) client-ip=185.136.65.226; Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 202610261219046bc157b9d6000207ce for ; Mon, 26 Oct 2026 13:19:04 +0100 From: "'Clara Kowalsky' via isar-users" To: isar-users@googlegroups.com Cc: Clara Kowalsky Subject: [PATCH 1/2] testsuite: fix run_privileged_cmd in image account extension unit test Date: Mon, 26 Oct 2026 13:18:43 +0100 Message-ID: <20261026121844.663746-1-clara.kowalsky@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1047747:519-21489:flowmailer X-Original-Sender: clara.kowalsky@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=DdApXwgt; spf=pass (google.com: domain of fm-1047747-202610261219046bc157b9d6000207ce-uzqwux@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-1047747-202610261219046bc157b9d6000207ce-UzQWuX@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Clara Kowalsky Reply-To: Clara Kowalsky Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: lFiYeToBEcRy The account functions use run_privileged_cmd which BitBake provides through base.bbclass. The tests load the functions in isolation, so the helper is undefined and the tests fail with: NameError: name 'run_privileged_cmd' is not defined Fix this by providing a stub for the helper in the test namespace. Fixes: 14acf490 ("introduce wrappers for privileged execution") Signed-off-by: Clara Kowalsky --- testsuite/unittests/test_image_account_extension.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/testsuite/unittests/test_image_account_extension.py b/testsuite/unittests/test_image_account_extension.py index ff0e47e0..ecadc15f 100644 --- a/testsuite/unittests/test_image_account_extension.py +++ b/testsuite/unittests/test_image_account_extension.py @@ -18,8 +18,15 @@ from bb import process from bb.data_smart import DataSmart file_name = 'meta/classes-recipe/image-account-extension.bbclass' -image_create_users = load_function(file_name, 'image_create_users') -image_create_groups = load_function(file_name, 'image_create_groups') + + +def run_privileged_cmd(d): + return 'sudo -E' + + +namespace = {'run_privileged_cmd': run_privileged_cmd} +image_create_users = load_function(file_name, 'image_create_users', namespace) +image_create_groups = load_function(file_name, 'image_create_groups', namespace) class TestImageAccountExtensionCommon(unittest.TestCase): -- 2.55.0 -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/20261026121844.663746-1-clara.kowalsky%40siemens.com.