From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7278630387282083840 X-Received: by 2002:ac2:4e08:0:b0:4fe:711:2931 with SMTP id e8-20020ac24e08000000b004fe07112931mr5439270lfr.22.1694688197624; Thu, 14 Sep 2023 03:43:17 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:5bc4:0:b0:500:9b76:cecd with SMTP id u4-20020ac25bc4000000b005009b76cecdls162703lfn.2.-pod-prod-02-eu; Thu, 14 Sep 2023 03:43:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdBeE1IMV3tjHZyE9IL7xoE2DkLGsVNP4GmvpaiUwr/vFZ+R+MACcKlmARRQUDu25CpvzE X-Received: by 2002:a05:6512:1283:b0:502:d302:e025 with SMTP id u3-20020a056512128300b00502d302e025mr5038045lfs.2.1694688195435; Thu, 14 Sep 2023 03:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694688195; cv=none; d=google.com; s=arc-20160816; b=LTtZ1ekolJTId2Kfvka+R21uBK33azT4FfTAQslx8vdeSwMC6pspWIkBB/O15evRMU 3IkgWdEIYhxdoj4wrip4TqTcFwQbR7l7zNVF2+I05I2TgIWK2c8qbkXuzuZOc5HifW1b VqINr+p4IAq5EfsyOyMxCjOKBPTaMTpHCHNPGyYfwq07aLE2pKdTvcF5Q78BOdVIgMRP kKJ1NPjTq786aSAtNzfJCaHs3jzng1rH8Tb/6XFlq54eGQLNsqgGJbjQQTO3jMX6kieB JagpU5zMFZzlk9DrfD4xG8CHVTQdt7g/ox56i4dBPiWpV3QMN/NbhuwgTRBkuoi878Py KxTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=B6eQEjBh32sQR7El9WnYE2wmOvooOhcnKYd+BgnS/88=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=Cy1rfOwrLeE+nE9WCg7NmSVr2NOADtyH+QPev0twUAGk8WEzWkga5ylAeGNtfi86Z1 aeVF5pI0oAUtNCQIqT3FmwUimtAH8T1SRmvGb9tC0vhEhYry1LwL/lpA0sFw1Z4ksiyn Ux6zsytkAAnqX9Kc+2PMY72E3ARo5ECJlHLNAASNePI5a9J1BA3eaZDmYKg7sdNEomV9 ivIeXT5IvutuUN6oBFIVxV0a9xUOaKWkbIMyYgOP5VnHRQEJ0+uHSk+ddlsZNjV+9F7I rB5zrFgYYbFsf+qhEAJOQIL8E9OgnPglKGr0qF5+/7P/NUHPZeiY8iiX8NCB9e2HJG99 ysug== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id fm8-20020a05600c0c0800b00403018fc1e6si95338wmb.1.2023.09.14.03.43.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Sep 2023 03:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 38EAhD5f019231 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 14 Sep 2023 12:43:14 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH 1/3] testsuite: Allow using custom isar location in test initialization Date: Thu, 14 Sep 2023 12:43:11 +0200 Message-Id: <20230914104313.30231-2-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230914104313.30231-1-ubely@ilbers.de> References: <20230914104313.30231-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED 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: EJZJK5r6KoKy By default, isar copy checked out by CI is used for the build. This change allows to pass custom isar directory to start build from. It may be useful if we need to have several independent builds started from different initial directories in order to compare their results. Signed-off-by: Uladzimir Bely --- testsuite/cibuilder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py index 12f0e193..9c9f5a03 100755 --- a/testsuite/cibuilder.py +++ b/testsuite/cibuilder.py @@ -39,13 +39,13 @@ class CIBuilder(Test): self._file_handler.setFormatter(formatter) app_log.addHandler(self._file_handler) - def init(self, build_dir='build'): + def init(self, build_dir='build', isar_dir=isar_root): # initialize build_dir and setup environment # needs to run once (per test case) if hasattr(self, 'build_dir'): self.error("Broken test implementation: init() called multiple times.") - self.build_dir = os.path.join(isar_root, build_dir) - os.chdir(isar_root) + self.build_dir = os.path.join(isar_dir, build_dir) + os.chdir(isar_dir) os.environ["TEMPLATECONF"] = "meta-test/conf" path.usable_rw_dir(self.build_dir) output = process.getoutput('/bin/bash -c "source isar-init-build-env \ -- 2.20.1