public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH 2/3] ci: Implement dynamic tests skipping
Date: Wed, 27 Apr 2022 15:32:04 +0300	[thread overview]
Message-ID: <20220427123205.30111-3-amikan@ilbers.de> (raw)
In-Reply-To: <20220427123205.30111-1-amikan@ilbers.de>

Instroduce ISAR_CI_SKIP environment variable to skip any single test.

Example:
ISAR_CI_SKIP="repro_unsigned nocross_rpi"

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 testsuite/cibuilder.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py
index 98b8933..59d25f3 100755
--- a/testsuite/cibuilder.py
+++ b/testsuite/cibuilder.py
@@ -11,6 +11,7 @@ import tempfile
 import start_vm
 
 from avocado.core import exceptions
+from avocado import skipIf
 from avocado import Test
 from avocado.utils import path
 from avocado.utils import process
@@ -24,6 +25,7 @@ class CanBeFinished(Exception):
     pass
 
 class CIBuilder(Test):
+    @skipIf(lambda x: x.is_in_list('ISAR_CI_SKIP'))
     def setUp(self):
         super(CIBuilder, self).setUp()
         job_log = os.path.join(os.path.dirname(self.logdir), '..', 'job.log')
-- 
2.17.1


  parent reply	other threads:[~2022-04-27 12:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-27 12:32 [PATCH 0/3] Make CI targets be configured Anton Mikanovich
2022-04-27 12:32 ` [PATCH 1/3] ci: Implement dynamic KFAIL checking Anton Mikanovich
2022-04-27 12:32 ` Anton Mikanovich [this message]
2022-04-27 12:32 ` [PATCH 3/3] ci: Correct container test case name Anton Mikanovich
2022-04-27 15:59 ` [PATCH 0/3] Make CI targets be configured Henning Schild
2022-04-27 17:50   ` Anton Mikanovich
2022-04-28  7:48     ` Henning Schild

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220427123205.30111-3-amikan@ilbers.de \
    --to=amikan@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox