From patchwork Mon Jun 17 15:08:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Mikanovich X-Patchwork-Id: 186 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 17 Jun 2024 17:09:20 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f59.google.com (mail-ed1-f59.google.com [209.85.208.59]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 45HF9Jll019116 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 17 Jun 2024 17:09:20 +0200 Received: by mail-ed1-f59.google.com with SMTP id 4fb4d7f45d1cf-57a460247f3sf2728896a12.3 for ; Mon, 17 Jun 2024 08:09:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718636954; cv=pass; d=google.com; s=arc-20160816; b=sUavxnhZCkvS71AVfqWAuBh1T5LWOQXUkk93j1EfTyEygfMqm2rOfm8D2W9U39I5of ZdSUcK3bjkWlfGRdwdKh6+HgvFNlS63KT9xMbbn2+2Zww3Rdo0FyJmRlwX67P0kcVTXV aBxa/EF7qQH7w4cY+mAEKkZzLwEJIZ8ovXkrpBoFHcpT8mxR5cX+nzwOivaA+8tI4REd A2LaPLN3kLytyLM12a9mdcEsLwxFzVA3GGx8eO/VPnMqla1OfvTodBqcBQvjJOiydeoj FgZPLREJNti/27jf04KVOL0wXJIhOZJ93KQJtgfQ7h1wTHcoVdU7HjDxXjYNfFMVrWGe rZfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=euVDc4qI+2yhQ9pT0OHNeLYQ6v5Lk2NxUlfK7hhS7xI=; fh=7uwWHbuQFl7LHHkfQ3otjCXJeij3F+sZ0pjLeJZFZio=; b=hhetmH8/zyoDmtP3GGAXcQPvzPkTPI84w331QZ3AnxTPJZQj+wCMDPLMl1EOUvelIJ iGGd0oPPg5JRbRZn6ACZCeEVCY23HToJppaVrT82xwpBq6w4QVAIHBv/vRW8JpV9VYHp qZ3oSZneM4HQlt87+bAi9Sy5c7PzwymLQguZclGIWqSCQOZ7o12NGnJfFhVxIB0hlgIO 5lwKr0rLP5tdOHlfydxX1oD0B/Ce8yBtuQUt34iOCa8pWZ1a1sLyPh3HibG3u6qqCpqY b2R/15O8rzTwkcxxBj5D0MXNk9sZBeyDKj9pg9ChL8/Qge2B2PMy06Dyg0nyg5/SLje9 7uFw==; darn=isar-build.org 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=1718636954; x=1719241754; darn=isar-build.org; 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:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=euVDc4qI+2yhQ9pT0OHNeLYQ6v5Lk2NxUlfK7hhS7xI=; b=idhaZpNhzHGcRblm+nuGTmODv5JGve3u7cJJqDRQjd0Z2/ebEL+1oDXkLSyicEib8h CQMw29ry+6aFkKgHmyQy9CzcUPodT7QBv+ChTMiKOfgTn8MU3Z7RZzVYG2w5Xv/j+EBF TaFL1JemARMo676vNxm1zf6Hjo9cvmbuWDO45ToppoVtZ5Sm/7vtO69pIYxxmQeJIuOY LN4/uIzOmO32GaFegduUjEj/UxlOmFcISc8FVmalBx4kDYeuyM18us+lWwjuW1Yf42D0 vqWsj4oULDmDKXjAMCAIoAGJVU7W/mTWnlgifE1otJVfYH7UFB0NuFppiOvWVQoezD77 nn4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718636954; x=1719241754; 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 :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=euVDc4qI+2yhQ9pT0OHNeLYQ6v5Lk2NxUlfK7hhS7xI=; b=tvihYWukWALbLkO4zetq2+BvUm3rY3iEqm86reLM0UP+qVbKyJsClW34XSVIbWDe5l EQbXkj1sNcMVL4ya4iVQO1oeNqEqFx7L6y03hV/FDyMZdV3skvBK4deXsVaR6YO/OpO+ thyyXYDWnufyKxYAW4rCecHyhKN/mzw9EORIMFN80QlVlHQFAiWTPVpzbHLsKVPCFQEJ CD5Y81YtD9omtru1i29TK7kiyeeScXHnv2EN2vnquqO/I8GAs6zk/KHHuKqVIji4GwJR msuK3mZoYdbDoqmpfFYxCD3Qsf0833W01GrdksajA5SrxK8VwZ9dIGCeG0zUqI8QotkW /VSA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWC0L4mvJ3DgvpKopxmEFJSi91ilXRsYY9O6Y836qDVSKY9sDSXmrGPDRIjnPR6VvLxaEKX9hcUEESzDk1/0g891GL8LQI= X-Gm-Message-State: AOJu0YxvfqnzDUKv+uJnZiP9NZDQJDOnHKxyxb+p3TmBXhLe5rSaY2LR U1Y+EXBHIJAA5rLz2EZ8iaBuc75//8NkwGTP+xSgt9Ww9bvZZg8J X-Google-Smtp-Source: AGHT+IH7nayWOFC9uH/ZAozwo7r6DS3o0Fa5/drNAldizGW0Pocobf0W9tyeEo8uQzdShX03hGPFTA== X-Received: by 2002:a50:f699:0:b0:57c:8022:a3db with SMTP id 4fb4d7f45d1cf-57cbd696c7fmr6952177a12.6.1718636953689; Mon, 17 Jun 2024 08:09:13 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6402:2554:b0:57c:8c03:7ce7 with SMTP id 4fb4d7f45d1cf-57cb4b8c321ls806613a12.2.-pod-prod-06-eu; Mon, 17 Jun 2024 08:09:12 -0700 (PDT) X-Received: by 2002:a17:906:66c1:b0:a6f:5fc2:fe8b with SMTP id a640c23a62f3a-a6f60d1e0ccmr581798366b.32.1718636951922; Mon, 17 Jun 2024 08:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718636951; cv=none; d=google.com; s=arc-20160816; b=dpic62VeOH+O/dVp+2EzRUVrgVpwQE3M+Xr8ZE3I7C3cSCVSzqBSSKKbaoq09oKMHc VfWLF8fSPcxF2LrCyYwGxBQrQppFcp5ZNBA3dsEgPqbZZrH8KnwjeUDDb3XyKIS42T49 qQgvFt5fRrCO9uHJEF+A4o//E6bgkejDjXtwKAHY85hNpbWgiVvw4eX9yKPPjbiDR4TE mYUpFFJpemtx8GqKcYjP6w/aEP7yCDB9TnTe7IPlcZwdr2d4ismfFDSAPatUf2jCfjSv 9RoTiOOWLOLTUFWGvotvc4i9lXM5BF4rLgW3v2DW+6x186E9uAY2KYjtniah+IshrCWo xz5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=ZTFa6imVhKOXjuY5a05H6UFxTFjrdBp0EnU8nurrSpI=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=YdCfY0QV0inADVc6r8wIGwGvU46W+T9EFWOFFWjxrPaEKwLhkfwV8jj+ub+EfKkWIc Ps9QJEHLilGqLCoAUpFRPXp9Sq5x53HDlnpaG5XKgTRPO2ccjKAXkY0XSam/qQfXSDqV GYAVS5cE6sZ2Sfwe2z+yvjwoHuQHLrVe/2BICWLUKdd0gY/E8htrYTu1Lfj+eM/pCfQb cxl5Uc0bvI3AWilRgQzS0Y0qj/Cu+uEdnPXwQzrv7wBeU5kz0JaCfnK8j8p9U7dkqKZb 4o3M9IF4V3NiEl8le6GM+m2Z9zDWh86pXLDJybjjwDWC6UgF/PUAroW2coycj3Jfjvyh r0kw==; 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 a640c23a62f3a-a6f56c966c9si27808066b.0.2024.06.17.08.09.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Jun 2024 08:09:11 -0700 (PDT) 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.114]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 45HF9AkL019081 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Jun 2024 17:09:11 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v2 0/5] Remove code duplications for start_vm Date: Mon, 17 Jun 2024 18:08:56 +0300 Message-Id: <20240617150901.55853-1-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 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_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 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= We had both shell and python APIs for running QEMU images, there is also start_vm related functionality in testsuite itself. All this parts duplicate each other and should be cleanup. Changes since v1: - Fix multiple image type targets. Anton Mikanovich (3): start_vm: Add secureboot support CI: Allow external usage for some APIs start_vm: Reuse getVars API Ilia Skochilov (2): start_vm: Switch to python version scripts: Remove vm_smoke_test CONTRIBUTING.md | 50 +++---- meta-isar/conf/machine/qemuamd64-sb.conf | 2 +- scripts/start_vm | 161 ++--------------------- scripts/vm_smoke_test | 106 --------------- testsuite/README.md | 4 +- testsuite/cibase.py | 6 +- testsuite/cibuilder.py | 65 +++------ testsuite/citest.py | 4 +- testsuite/start_vm.py | 90 +++++++++---- testsuite/utils.py | 54 ++++++++ 10 files changed, 179 insertions(+), 363 deletions(-) delete mode 100755 scripts/vm_smoke_test create mode 100755 testsuite/utils.py