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; Thu, 29 Oct 2026 15:25:17 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f56.google.com (mail-ed1-f56.google.com [209.85.208.56]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 69TEPGZn002744 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 29 Oct 2026 15:25:16 +0100 Received: by mail-ed1-f56.google.com with SMTP id 4fb4d7f45d1cf-6b1aa4d7162sf3125717a12.1 for ; Thu, 29 Oct 2026 07:25:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1793283911; cv=pass; d=google.com; s=arc-20260327; b=dkUmO7CpRkNiyg8eHR3jukOgnPaYSG3fRqnNtY2H4lnOpoT8mk8bFMBqjXZUxQXJF9 YZlf8oBsrATZbKezzNiDu5sU3P6IAFId49C87bdhLq+vOMSyWUBlc0dPAEdcGVQBoUwk IbbWeCnRdDM43aByoL0m8m93wG+nL4hBoTEcULPU/pWMZuXN3/Z4Wnfqh5f756eMdpG5 czseJQbEDAdSdrKav1JdmtfYKBCZZqdWewNn9T9yzaqkmtxIUS/qlby8vFIRYiWne5n3 pi4Xrti9i2pVrrdGcUIFFJ9hpKPlrQqGHKVsGZF2S14BtpbEHiO4rIxfMRcvPCSydK+G AvSg== 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:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=oaq9H5HFXBeBOgHKy1xVYsDr+NVy1ofV+4Iu13RNZv8=; fh=KkcI7sUUL83iYyslQXU3amGpM5luEok97dE7m2pQp2E=; b=haz7g8Wg31oItcXMYnlCG0xvMUPSZn8oeIdr/g3ORbiZHioErl4vMQQszJrFLEYd0M QZPVIwAViRzFLHFfRyCLDLIIUcSTB82fDZIz7+/O2Z1u47FOAG/QB/YrNRTI5Tm1AH6e N/trpStGdS2dXTxiBZFOIvUjviqi529KeYH0nYjImfp3fgV7amCP1pgIRM7+BmxxETuV mIYOmDIRvCRKoYFFfDKfWlFmucoXYv38Dcyz4OYO3FNY3/kBuu0rE98P6IMV423CROV1 QdXBeiOGi5JTJQJyWmUWPt3z/LXL+EzgUP7YTxbnCGh0AyMiSHxl6h43mop9G6LnuDta /mOQ==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20260707; t=1793283911; x=1793888711; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:content-type:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to:content-type; bh=oaq9H5HFXBeBOgHKy1xVYsDr+NVy1ofV+4Iu13RNZv8=; b=vepU02vpE4f+riR5D+Q5py3aMTg26O7pt+yEqWqpgQ4xz5QQlAoUi5Ch/eKLNyx3+i GQvbFqWVn2vbisVsHbNyE1dawFvljYgJ0rtEUEVX/y728TKd7+g3sVgJL/CcVMf86E64 Hs9T2VIUbl209HZ7SpRb7+hOsY78mpxWtyRlfUkMZ2y73FCzUaZwGHpuYjN8BD5NBp8D hZ8n/Hxcjk0OhJXZpWkYLJ+Jvl/nvkhe0BxnqLWkrKKRXH4CG+nhBO7r8kVF2q4PNyRf UC7fhWBdnIL2r4iEf/bU5gbiJnnbYuZKNhYJSYrHGTI1gAQ3wqvodVzcaR8nlrIM3cRM 1BEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793283911; x=1793888711; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:content-type :in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:x-beenthere:x-gm-message-state:sender :from:to:cc:subject:date:message-id:reply-to:content-type; bh=oaq9H5HFXBeBOgHKy1xVYsDr+NVy1ofV+4Iu13RNZv8=; b=LL+6gi/fKB0HKnMOI76StZRe2gAz1Qy0EN6T3AZ48VfmJiykFAyv4jO0Gw5eobBT9K 0kHaQRfoZkgzpty5B4meJ570LmzQ4qigOLFxkMCJT38zg7MFJw0JecUJ+WNDgDToZkVl WXVdC5TDJ3YuwbFb9SM1Ewisc9g+8jg72oHb9zsZpOiJG6/4Zwv8If0rq+Z91TGMnPeZ BEqrFEAAneTDvaDGyWPEancPLOuwcX9a352TbHPNfRIY0orRHDKzxxuKnwbMBN4Eih94 muKoVHrB0RxDc7lXPVnhQ0zUdKFMDYSONRfpW+Ml6z6xfSSVUwAGvpoJvo7UXl7SfSIP dqJQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AKwUvBzkcxGcDSFDzsFCPOQkJbTP6nbCYAk4p78+L4SbfeimS1dH930dn6Z+/GPdTQRhZwQJrnKq@ilbers.de X-Gm-Message-State: AFq9FYJ0bg2KQtpUTHuUaw4FRUD7feILoQH5i7Rnd9JVZeUBgMizjZH9 jpenA78tYZGO/7ha9f7lhg6Pc2RwnqcMIlWws/PVihUvYK4B4p65EOEA X-Received: by 2002:a05:6402:3207:b0:6b1:d148:5a0a with SMTP id 4fb4d7f45d1cf-6b49cb66394mr3985809a12.19.1793283910939; Thu, 29 Oct 2026 07:25:10 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ATskLdcQvJ7D1mANAfPB89UyIIWhPa1L8WF32pDEvdVvqUCq1g==" Received: by 2002:a05:6402:42d0:b0:6b1:a82a:ea25 with SMTP id 4fb4d7f45d1cf-6b498dff54dls3141385a12.1.-pod-prod-04-eu; Thu, 29 Oct 2026 07:25:08 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvByVTjo9kUojnKBzfTVxOlDl9B5N3RCE8x2GRkYaIHBBBmj1OzUGijBe/QV68Mf+HabaBi4zwQhCrZ8D@googlegroups.com X-Received: by 2002:a17:907:9621:b0:c40:dfec:50c6 with SMTP id a640c23a62f3a-c49bdf0245dmr440948766b.21.1793283907692; Thu, 29 Oct 2026 07:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1793283907; cv=none; d=google.com; s=arc-20260327; b=Hx1wrtpKDNRr9DtSFSQqGuTICqH+QqRFGqWeJLtJZdssXv86iFYA4OZ721of33HiFD 7jti44/WSeyZYvCQBQ7YVzZjn+HKlI9MRrrCIT6q7tZxc4+aMxMA9MKVf7hKzJMmaVZQ Gtk0b5C/SUAkHObLoEMXEc37nXL5WrQMEKm6BMuHKYFoZRhlan2QMMsLDPjkjDUqia+x KJk00SpOANYSh2V46qi405FtA2qRYhlULSbsFOeKH6WgCQkJxzygIED5tJFnP6clcjJg xWND8r9rzBjQRH1Qv9wIUbfBsF0CEoGWQ7SBGhOd006Wo76hn0qLMosxLkufe7Vdoo+D 9DNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id; bh=tNMdeofnlZXU6J3sIhW0itQpqT9rQHRPSF6nxqAKYiA=; fh=lOecfPjbysiGzlRBef36l/WlHWoMC0vHaB+pO6uJ+To=; b=pDQ0QLlLRUjvxJ0toqxN/Qg9NRUFrVUcAtukcZy/5XNmvBZJ1H3HFDFlpT1nNHUevM pFqzfWGikHAN1Li4EwOx8s/ZCVFg4rBYw9GRgIXnVAQXrtpVsGSeC8Wy4fmK3l67XkfI r86Gzk1uGBmv3BI45rGzxn0DsZEct+9foFsu877egt0epdHQ22ayi4UsPsnctm/Wzr+v R3U5yciJswsBUZBkbceR6sCySP5aHDtiBm8iSgZEpVPi8Mzwa1ZbKN3JUtyl6irWs30x 1mEXAzoz31Bf/416y8CWjhO12qhCTy0DWdnuvEezqfdkkVb+DC3uDJK2TEDUVp5WYMq3 2duw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id a640c23a62f3a-c46bd476dfbsi18767166b.3.2026.10.29.07.25.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Oct 2026 07:25:07 -0700 (PDT) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.139] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 69TEN6WI002574 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Oct 2026 15:23:07 +0100 Message-ID: <73fed67d-acf3-4c2f-8eb3-85ece2241c44@ilbers.de> Date: Thu, 29 Oct 2026 15:23:06 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/4] testsuite: fix run_privileged_cmd in image account extension unit test To: Clara Kowalsky , isar-users@googlegroups.com References: <20261026143132.1067398-1-clara.kowalsky@siemens.com> Content-Language: en-US From: Zhihang Wei In-Reply-To: <20261026143132.1067398-1-clara.kowalsky@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, 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-Original-Sender: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de 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-TUID: qVQb2BYqAT3o Applied to next, thanks. Zhihang On 10/26/26 15:31, 'Clara Kowalsky' via isar-users wrote: > 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 | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/testsuite/unittests/test_image_account_extension.py b/testsuite/unittests/test_image_account_extension.py > index ff0e47e0..8bf5f82b 100644 > --- a/testsuite/unittests/test_image_account_extension.py > +++ b/testsuite/unittests/test_image_account_extension.py > @@ -18,8 +18,16 @@ from bb import process > from bb.data_smart import DataSmart > > file_name = 'meta/classes-recipe/image-account-extension.bbclass' > + > + > +def run_privileged_cmd(d): > + return 'sudo -E' > + > + > image_create_users = load_function(file_name, 'image_create_users') > +image_create_users.__globals__['run_privileged_cmd'] = run_privileged_cmd > image_create_groups = load_function(file_name, 'image_create_groups') > +image_create_groups.__globals__['run_privileged_cmd'] = run_privileged_cmd > > > class TestImageAccountExtensionCommon(unittest.TestCase): -- 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/73fed67d-acf3-4c2f-8eb3-85ece2241c44%40ilbers.de.