From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7084101336361336832 X-Received: by 2002:adf:f90e:0:b0:203:e0fd:e9af with SMTP id b14-20020adff90e000000b00203e0fde9afmr13313977wrr.154.1649395873762; Thu, 07 Apr 2022 22:31:13 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:f950:0:b0:205:dbf5:72d8 with SMTP id q16-20020adff950000000b00205dbf572d8ls777579wrr.0.gmail; Thu, 07 Apr 2022 22:31:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDnPfRNmHl0QMUbBzvRr0SXGGVW/qM6ZKPauMb5pWrXpmgbP2YWQi7qbJ3s0mi9Hg+vnpi X-Received: by 2002:adf:9782:0:b0:206:1d12:469a with SMTP id s2-20020adf9782000000b002061d12469amr12553104wrb.55.1649395872682; Thu, 07 Apr 2022 22:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649395872; cv=none; d=google.com; s=arc-20160816; b=P+5sxOdxow+4+waVnQT0WM758c9A/f3ddEP7KWRnk+Lh2J6pbmHXweHu8ZbeEGggqW BpimSacBYRXLGFWPXn8HO0WuvqYBrOiUazQ3tNPPKw6nmIhMlP5PVOk13iVsFNB6L7Na nwmoVDpdc/ulRqpbcBlzFb713D32PmwwUpfN7KUoh3zvckY0TVRGwY6m6OdXsIXphrOm klMu+U9646ZxDjA6nAfssQgo84RO8khBxUX1ZeuzTWhKwseh4VXexEeE3ECcRAmJi75c 88MhKFhTveaOxzaXLXh/qRIlzoUKIcQnGwsMbQYckfieFVbDQa+8txxBi8VDbHttylPq cmZA== 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=AZ3/gkjqOf+x8eAUo83L9+u7HS2ZSrcaYgu5wRdP2lU=; b=gc4z1CuAimGOYlSPbZFbNWg8Fe7B5O2xT4Uf3S4xP4i0mp/859ywz/8gbyoDOuqeeN 7dnEaUgYPEX17EYgsDt/CKpBNfii2fJJ1xjlgEzAU2YPFSIPXrFrILo4eP3CR/ei7yV5 ffKdsKE6UVsZIVIMWakdnTw2qmy/BLPUFI4ntudLButspP3AR82Qwx+h21RiS8ey9rnS 57hsGXiUcQ33mm9JwjmI1AsASToshYWfGl78ry0tiJj3OB3V2LIUrxjzIn1kF4UwErc5 3hjxtsxrFX8wzLuzgDI4JXpUQTUb+Sct6QN0zOviONdctf8Y7lngCFKmNusSH2Il7hK8 kDFA== 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 p22-20020a05600c359600b00389f5a1b55asi30482wmq.0.2022.04.07.22.31.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Apr 2022 22:31:12 -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) with ESMTPSA id 2385VA5M006475 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 8 Apr 2022 07:31:12 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH 2/3] ci: rename tmp in repro tests to access logs Date: Fri, 8 Apr 2022 07:31:09 +0200 Message-Id: <20220408053110.10416-3-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220408053110.10416-1-ubely@ilbers.de> References: <20220408053110.10416-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: +mOuoIz0wXLV When repro tests are finished, "tmp" directory is removed and later is populated by other tests. It makes repro tests hard to debug in case of errors. So, instead of removing, we just move the directory for further analysis. Signed-off-by: Uladzimir Bely --- testsuite/cibuilder.py | 4 ++++ testsuite/citest.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py index 44d31aa2..ef68d97f 100755 --- a/testsuite/cibuilder.py +++ b/testsuite/cibuilder.py @@ -124,6 +124,10 @@ class CIBuilder(Test): self.check_init() process.run('rm -rf ' + self.build_dir + '/' + path, sudo=True) + def move_in_build_dir(self, src, dst): + self.check_init() + process.run('mv ' + self.build_dir + '/' + src + ' ' + self.build_dir + '/' + dst, sudo=True) + def bitbake(self, target, bitbake_cmd=None, **kwargs): self.check_init() self.log.info('===================================================') diff --git a/testsuite/citest.py b/testsuite/citest.py index 5d4cd0aa..d0ad728f 100755 --- a/testsuite/citest.py +++ b/testsuite/citest.py @@ -34,7 +34,7 @@ class ReproTest(CIBaseTest): try: self.perform_repro_test(targets, signed=True) finally: - self.delete_from_build_dir('tmp') + self.move_in_build_dir('tmp', 'tmp_repro_signed') def test_repro_unsigned(self): targets = [ @@ -46,7 +46,7 @@ class ReproTest(CIBaseTest): try: self.perform_repro_test(targets) finally: - self.delete_from_build_dir('tmp') + self.move_in_build_dir('tmp', 'tmp_repro_unsigned') class CcacheTest(CIBaseTest): -- 2.20.1