From patchwork Fri Jul 19 06:29:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Mikanovich X-Patchwork-Id: 200 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 19 Jul 2024 08:29:58 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f61.google.com (mail-wm1-f61.google.com [209.85.128.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 46J6TvNX032264 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 19 Jul 2024 08:29:57 +0200 Received: by mail-wm1-f61.google.com with SMTP id 5b1f17b1804b1-42674318a4esf10578545e9.1 for ; Thu, 18 Jul 2024 23:29:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1721370592; cv=pass; d=google.com; s=arc-20160816; b=Xjj+NeKe+VLxhkdaDcVtcAUgHwFwZhBvka1La1RoNvgl24fyD3+wtdxw6k1L7Rkh7f 8WvsK+pDdaPMlSDCTJN+Et69fgg6OS9zVVWY7VrJBIjp7YWtP8ehT+CisufU+MImX80q Lc3VSAj6FJTdnd69/IdoCiKTjykfxBWK27AmN2hoWWc9O3fBOnvBdRgy0NozCSv8d81v j/5dnt3xO4eI3Ebapxs+44G0faS/33kzqM/oGuOQkcOQVr4oMWYqFNaQzyjxT+od7xMi XGOoyv+ZFnk90u4z9n+tzr1dWu67pPNrA+GhufYgJhS/y9ZLAAwH+E714JzSQve7zmTb uhUQ== 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=TPD0ls7j6fy7qDLcgiod8MCAhif2jOM+HkW0DI9PcLA=; fh=OFOUU2O+qWe7LXG1yW/NmHGHXCu8LUfZSwsn9IMmTyU=; b=pwKNgfX96PJRUCSuQeq0Wjiwu7FIgsL/509g7va5ivITrquRmWuJebPUOgMCp7lWEm 4W4goFQTloTZz0IC4a+sKp/OKsB1u4G3c1CXLAT5dOmTLqUR+W8zuxY7wMpR6426kzmg Dt0RH6MZ01x+xKhMppQBOSy5tDWGV81VF07EQ6aBHL9YOZbGoXlTTynMkTnKl0mqT2bA 4nD74N8jz2SXh9tRNxrp7kk60hSNMD3Ot2VyJd4szdTbOrXzhbf223jLgh5ryQQXU3GK 3odymAD8oei48bFgdLNDmYFc1FVZ5m0pk/M07I1RLHFhC0INg11Q8VPGLuXaZmuPaboz Sjrw==; 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=1721370592; x=1721975392; 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=TPD0ls7j6fy7qDLcgiod8MCAhif2jOM+HkW0DI9PcLA=; b=rfD5RraliUHTUiFOz0cIF+stWjLc1Xg9hy0fFQGp5EuAFewlRfQ9iIZbtRF+DiQI6T ILKW7cWNtPkNwzYOffdxmUo0ZdyJwMa5dT5/c+CtUZme15qvajNZYqPy/0oxRqKfnwuw c/ZiMgPonxmCXhqbHvAeW+Oz6gxAJv9pxvyWuBzN6SQcKcWavcDwE2X21jiUOBTNnYdd tkLKy1JCgp1wZCr2JkpcNIpTEL54OaY++GQoJ6AkdVHqcN/yjx0veafvj15DPs1Z9Wfa lO57plW7e7jAIGW3NarmkMv+qH3ascMNLrnNeqU7v+idg2f6D9JDzReqi8gD4JGeguDv YJ5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721370592; x=1721975392; 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=TPD0ls7j6fy7qDLcgiod8MCAhif2jOM+HkW0DI9PcLA=; b=HNjtXNFC+qjhJMLtqybedZzkgfQ1Q3NA9dVpluxMD4kJvV2NrG17l/yfOe5uXZW3Wh 7Xh+IHEqvCjBZnnzsRLKQmeRJ+vHmT+fWm01MwQG3219VaxMxHwsR4yLjR3tbHncuZ6H Gw9+YbrRVI08iwukNbXVDwXwHA4+iJ18T86kkQnFqgmHMXFTF1A9huziVGpIEtcq9wbW AIij1sPWhwxpc47CqF36EYz/U41ENqr1RjUs5USr2RRAZkESk+Ad99CxnTPr2YYb4B6Z eP3Bxf3TL6QaqPJvtlpJysHaGNnVcR/HweQwDd7tOgVkm4avU1Q4vjfH8wLYZodh7CzK 3Qmg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXpyMQE+/keV32vzX5nWPEJec0D4/g5F6w6oS6X7jxcXiWMskrUQxL9QPhzoA5CuEkrzD8GyUk76uyH7Xq5UQJ6XZIe9/Q= X-Gm-Message-State: AOJu0YyHh4mfl3rs5QLqMRR0SXzRjYwiAj4PLbbmyQZXtvPB1lf4C7Ab vWAHlOVA2n9DkFsbPu8RluTBRLx2qLWfRX6LwAfrk/9GnxMAI/JZ X-Google-Smtp-Source: AGHT+IGgeiw+mniB3HBNeHm7H0qryjKamMX04SNmZzYqy+g+hrQZ06YoZ3J2piiBM/RLqT+HWDI+Eg== X-Received: by 2002:a05:600c:4f96:b0:426:6fd2:e14b with SMTP id 5b1f17b1804b1-427c2cb87a5mr58390525e9.11.1721370591605; Thu, 18 Jul 2024 23:29:51 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:510a:b0:426:7318:c5a0 with SMTP id 5b1f17b1804b1-427c83a94e1ls10936195e9.2.-pod-prod-05-eu; Thu, 18 Jul 2024 23:29:50 -0700 (PDT) X-Received: by 2002:a05:600c:1d8d:b0:426:640a:9de7 with SMTP id 5b1f17b1804b1-427c2d13b7amr57735455e9.39.1721370589759; Thu, 18 Jul 2024 23:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721370589; cv=none; d=google.com; s=arc-20160816; b=dVPa+AUVZBC1vynIYfCan4SvYUNlxpgLSyob1LjVA8ugtKTMcAtY2VKrt/xmEyjxqo BfrQI/FM6qulXa5920JksQHRF3Yi6x5jHRtnmAbKSJefjz7GnHhAVmoq3xmtJz1VCuP0 CWiBbONw4/qQmD2QYLVDYsE+pGb808jZz9Sf7YimdZ99ge9RIN0Dr/PTd1f+rF+D1NKr AfosT+1HyWvdRgRbbPpWhnjSqsyEkeB1mX9ZSntkW4XtveBfsCco8Rjwkp6INNSpyGZx 8LUIdnECOjIZ9xfaZcpr9Y4hiYTAZ5ICeehEA/qzPvSi16WgYpGlIH60T2hKcXLjtD1Q IUUQ== 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=RViqvGobhlgClFcym/oDG63DvhbOMbZNo0LIlKvvB7A=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=sobrZbAy+bL6uB/w7nVPHcNp6DgX/w0hnPOlcAfwlbRN/cVxbyS0+zVgZbrADNCbw3 RTHY5OVg9Y0RZbAQewIHqTColbE61ne9Q50teMDBsRMk//uY1CXTPPlqvEg5VKCgV0gS hmtfWmSRN9C6LPqCcRLCYf9hxpQBPTYRmUOG+d/VmhaW3tAHbdmyNsyuPyHPXZfpkclA cRkQMCgRfJVdmaDqCxGmGQOwvTwzE5UAh8nAu9Bz056H2UPw8QGS0cIcmZmtBxPsb5gG eSNn/zIfiA0e+mNXm/qWHI0Pzel9Nigtepex+FI7ewuQoptADg22GbOHGYQyuDIVdFqf 3tnQ==; 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 5b1f17b1804b1-427d2911f3dsi1724815e9.0.2024.07.18.23.29.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Jul 2024 23:29:49 -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 46J6Tm5o032243 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Jul 2024 08:29:48 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v2 0/2] Python code style for the testsuite Date: Fri, 19 Jul 2024 09:29:38 +0300 Message-Id: <20240719062940.2601132-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?= Current testcases are written in various different code styles ignoring any linter checks. Fix this and also declare some rules and usefull tools for the future test writers. Changes since v1: - Fix join in startvm test cases. - Fix wording and typos. Anton Mikanovich (2): testsuite: Provide code style documentation testsuite: Fix code style testsuite/README.md | 50 +++ testsuite/cibase.py | 237 ++++++---- testsuite/cibuilder.py | 425 +++++++++++------- testsuite/citest.py | 245 ++++++---- testsuite/repro-build-test.py | 39 +- testsuite/start_vm.py | 152 +++++-- testsuite/unittests/bitbake.py | 22 +- testsuite/unittests/rootfs.py | 9 +- .../unittests/test_image_account_extension.py | 162 ++++--- 9 files changed, 866 insertions(+), 475 deletions(-)