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; Fri, 21 Feb 2025 16:49:01 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f188.google.com (mail-lj1-f188.google.com [209.85.208.188]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 51LFn0cu015902 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 21 Feb 2025 16:49:01 +0100 Received: by mail-lj1-f188.google.com with SMTP id 38308e7fff4ca-30a45ae93d8sf18198941fa.0 for ; Fri, 21 Feb 2025 07:49:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1740152935; cv=pass; d=google.com; s=arc-20240605; b=GVUziYRWZPeIczta+VKAaH5HiG2ZmQaAz9be5hTDJjEpSmIbYfnyU1O5QTipBt6SPR UpEg2AnrCnVovxIIr99IZSjdDsD6wK5wUG4YWEdLJPvPsU/OU4SbkZwoChYAj4JiWD82 xfnzEbKMuSsMRhv0p9AzDHG/gqlapkaI8YWKlr29EOycBgSx6HJEi+5b8mrQ2S81YMzP 3ukLxmGDIXsUdw55bRQHWnqkfVfgKrIOA41y5HAHLzIxOdBlsWp27vi1sIRZvwB0nxER eHVViBL3PHWKSgALkbFC9cnz2ix7NGnEUw/IwZFwDgotl7LVNkz1EBI69HURVqbkqats NHww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=zBob7OIIdbeYBv3D3WRpcevc8oOoejQNIec5IYABtqQ=; fh=F8cqQ0PeRypHx7/h93nnD5XF9qQb+0bC+KgZJ86i/3o=; b=BnQn9VGRYDgyZnQwxxd59j6mLvTTCuwYS1CsBaVmQ3Z6PX7SIL5akmLRZxQMb7tEKH 6DLHuRKC/yRWB/BRT2k4TIPQ7NejtIvBiDO2lel4px5VmCTDPCgh/16tzhSAgFHruF5n zCGt1OhDRanAyuiazaxkaisJI9xvkACo4o7jCzXyP8FaYoPO+Y72viyDV/58g96tY4Eh vyXuBMAWst4ZeOhNLTPsoRodqg/qCOrgAKyieppuj/8gSgcra55vomzHFeA7K0ytPW+u FV+u4YlBxLP1g+ZCpqJdn1vnJUuEfgjOR2dcgsGgyXoszWpLKVAzhC1VgsJ7uv/igqiv UrJA==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1740152935; x=1740757735; 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:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=zBob7OIIdbeYBv3D3WRpcevc8oOoejQNIec5IYABtqQ=; b=j1pk+XQBSML88sAjH/C5OSUJtCdTfypNp2Tk+w2DZHtmg9kKxrnUpJZ0R7soIe7Ofq izyXoAGl9ew0VCRwlCnuIBHsAiCIgaCeU/6MdZ/QJ/opFwzUBCMRO1iReDf/f4Ii3N6j KA/vi+y7oOaVdE54OA96tvFAqIMviJTC57/Ut4j0leeR74JXW4noWqE5cZbQINPh9YLJ mIYgwfR3bs1ev1vbNY+A1vu+YrGM7ZDA1LFtWr2Qo2DXIJBntYq+0lvaNKzZhhmYhyt6 p8FLlnWAkztGZ+P+PiEUUsu7c4kZLhUcOh9HCHSr+oohnqUSlZF2iMpOVndLgBeFLGgy 4Bnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740152935; x=1740757735; 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=zBob7OIIdbeYBv3D3WRpcevc8oOoejQNIec5IYABtqQ=; b=ToLuNYAH8dPV+gOCSUJ/GGiyoPZjm6xzPncWeVdEn3vIVKh5ekO4sT8q5FZnWHtqez U4XWZnmc8mqOAmRiVUdi0Ry1V3RA24E6+5RCAT/JZG0evlUnEs0LZUe1LZ7+7Eisdrin d2b+asBn43Wcu+OadoM3BeCjbHpk4k5p8rpoNFaCswmg/1CnPsn9UBMYZuZ0X0gioZ4K e6van4YS0IbJk35A9Ei7YCjp9YyUmonZ7cz78LztBNvoQT76vxcIHOpkSznhBxa/7xUB hCvqRQ3SfdoGlzU9/eYGhq+Br2C/4K3g8T/PGi+yBAfC4gzgGJKge1+7FbQY9Wwyu/L7 GwAg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXmNORy/JHJ4Um9Md5eDhlmh4+DokTbEDFT4AGKFgLhxiHiWWAq5SztdqLN0pJ5h/qlJV8J@ilbers.de X-Gm-Message-State: AOJu0Ywjc2SpPIj8LC2AgWESXYG2/GW7kOv1zNAptaDxJXkJJlcbS0rF B4GNrVt3CKR+uwiTfjydr+JX5yMRu0qH5v+RQMXyfT5By4EKhWXt X-Google-Smtp-Source: AGHT+IGiWZedE0pbgvDVMhGAeUzg/aIt4O2Pa39/Z8LbZKN+dd+3s1tuFUpaRTtaQYAkOOQWlnNQ0g== X-Received: by 2002:a2e:9050:0:b0:308:eabd:299b with SMTP id 38308e7fff4ca-30a5b167c6fmr10205001fa.7.1740152934865; Fri, 21 Feb 2025 07:48:54 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h=Adn5yVE4fE9Ge7AG5gxX9VM/AZ3JDeW9gekd44X3eUGco7awew== Received: by 2002:a2e:be90:0:b0:30a:3024:5bce with SMTP id 38308e7fff4ca-30a597c8708ls367921fa.0.-pod-prod-02-eu; Fri, 21 Feb 2025 07:48:52 -0800 (PST) X-Received: by 2002:a2e:95c4:0:b0:302:175e:5abb with SMTP id 38308e7fff4ca-30a5b167c85mr8903011fa.3.1740152932451; Fri, 21 Feb 2025 07:48:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1740152932; cv=none; d=google.com; s=arc-20240605; b=N0S79TxukBubcZiCG9+gMOnc5s78p8CFrt3yWjgnoxP0Oq31eM8/rjrxqJtOYsYpSK j2AlYCAqcr7jcG54sEw2YJ/V0HQ6SKxqEIUvILgF0DhET9SPWUyzcNbQjYo2IdYneymy 3Fwu/lOx7gFljXGo3+Mfq82vLUst1R+RY++prqfUkpYb3Zk5SSD+9U/aHEHI/df8p4Qo c/UVgK+600WJLGoiNZavm76iCvOGvLHZNQbrkHmb5u7AJA76G3qssBr/YuE9TPUiyW7W 0zZOS75Y0ydeYzBDteIeiq10OxGN20Okb54kPCeHCQ2nSIPgoPExXCQXgK7SZel+my6j QdFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=JAJIbrJViA3J06Ko1gMafX4hZqtEEWo4wxNjnrwcoGA=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=B8xcMNid8q6kEbIn5PHXGSwuHUGtdnynbewPOzE5uKGphnSrOiwv90XaILcgRgQWc2 fW0T3Zvaf7jGClQPsxCjlE+6ZbT7via5PfWDaQ8BUZRaDpFM5a3ifq8veW8r0EWB/qgn mJRBKd6GZf9p2QX8nPcWs7XTp3VLuU7wlI+3Thrj9yoIHd+adConFfJc3diE3rPNM6cW CGFDd9bMcT9TAe6C6hlhjNVOU721CKZ9pNuTArZnq8eM8gzU1TUPT0a+/RT2sNTPCQZL UroYhuSmUK/FgzJ9jvxjJS6ngMlxFPjQg+gxNelfL8kqY18gJ3u9HSJCvQuDlDG2tnZ/ m9+Q==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-30a2e4e904bsi2473541fa.8.2025.02.21.07.48.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Feb 2025 07:48:52 -0800 (PST) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from user-B660.promwad.corp ([159.148.83.123]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 51LFmn2o015858 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Feb 2025 16:48:51 +0100 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH 1/6] CI: Add API for checking package version in rootfs Date: Fri, 21 Feb 2025 17:48:38 +0200 Message-Id: <20250221154843.515037-2-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250221154843.515037-1-amikan@ilbers.de> References: <20250221154843.515037-1-amikan@ilbers.de> MIME-Version: 1.0 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: amikan@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de 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-TUID: 2bxz0TSFvCoo It will output the version installed in the rootfs. Signed-off-by: Anton Mikanovich --- testsuite/cibuilder.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py index b5b6a093..e671a4ae 100755 --- a/testsuite/cibuilder.py +++ b/testsuite/cibuilder.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # # This software is a part of ISAR. -# Copyright (C) 2022-2024 ilbers GmbH +# Copyright (C) 2022-2025 ilbers GmbH # Copyright (C) 2022-2024 Siemens AG # # SPDX-License-Identifier: MIT @@ -335,6 +335,10 @@ class CIBuilder(Test): bb.utils.edit_bblayers_conf(bblayersconf_file, None, tmp_layer_dir) bb.utils.prunedir(tmp_layer_dir) + def get_pkg_ver(self, rootfs, package): + cmd = f"dpkg-query --root={rootfs} -f='${{Version}}' -W {package}" + return process.getoutput(cmd) + def get_ssh_cmd_prefix(self, user, host, port, priv_key): cmd_prefix = ( f"ssh -o ConnectTimeout=5 -o StrictHostKeyChecking=no -p {port} " -- 2.34.1 -- 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/20250221154843.515037-2-amikan%40ilbers.de.