From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 04453A0C55 for ; Wed, 13 Oct 2021 16:00:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87359411E8; Wed, 13 Oct 2021 16:00:14 +0200 (CEST) Received: from mail-pg1-f228.google.com (mail-pg1-f228.google.com [209.85.215.228]) by mails.dpdk.org (Postfix) with ESMTP id DE773410DA for ; Wed, 13 Oct 2021 16:00:13 +0200 (CEST) Received: by mail-pg1-f228.google.com with SMTP id m21so2381948pgu.13 for ; Wed, 13 Oct 2021 07:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nmsPC1i2GP4IyI9XcWCejkx7rxo+gNII9ahzM/Az+ug=; b=dnnh0Kqh0JtcA1NdnxWcj+0gnYOgiFvWtLXf0m2TxWfTvHlR8WnOmJXpYqqV7Wiq4d vbZAQ9GrUEhA1+0KIzN+HMoQzzhCNIXth+zReX2StEwstg65mDQgHUa9ZZrieuDTuTHV WGWhOfMSTWa5+/CtFiPVWk6jretnC2QSo02d0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nmsPC1i2GP4IyI9XcWCejkx7rxo+gNII9ahzM/Az+ug=; b=oJCEz7qhXp0ZZygMFsM0U9IAlx4GkXF9xeiJ2AHPcWe/y+LX/6ehBHw/Iz8Fcv6v/s GLQY0RPVPpzvjdchOAMtbjWL9rLK6iJf/SiljZJWZL4mlHjTEWWyG2jB1Zry2Iyp5ltY YeRecfaHUvE8BQvbhUVdPysDb3Rsqts8AQCuxJAM8Eh8YEU/OK/t0dm+ppcBTP/Fme9q PEG+K4Lk1osWoGtN315aZEI5BlVnEckarBhVUwjcZckVBw3PanD8yA2gzVTr2+s7Lp8a Szl4AzYaKNHuCMglSKFxSpSkMnDdTLTmE0JCkJxQys3wrYUg117qF3T0tS/eQnNAX7ev iMHA== X-Gm-Message-State: AOAM5307k7HpIIHoipmOED4nD8+OR7wGpuHoWzwIgxbAt/dfkyRK68Zn ag5NAV85atLqLEOR6IiqfwmFKU/y6HjjEKW/tZMLJpCnxMx1OPf1XFWM7CPrNKJU2lw59A1xzRC BObospLypEceGF7YuTuYsbC6zHUn1yCZgkLse3jLCZAaadSvfgDdLrLi6RtBcmQLDYUVmYnvrGT I2HYmJ10RK+wYe X-Google-Smtp-Source: ABdhPJxQzHwbJYAT2komH8hftPUAzXS8BO8d9YEShtdVj6+x95r5olHhtirwuemirLkpAOg1sUN4ae1rs3H0 X-Received: by 2002:a62:5209:0:b0:44c:68a7:3a61 with SMTP id g9-20020a625209000000b0044c68a73a61mr37730078pfb.83.1634133613055; Wed, 13 Oct 2021 07:00:13 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id ls8sm2108549pjb.5.2021.10.13.07.00.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Oct 2021 07:00:13 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1257::105d]) by postal.iol.unh.edu (Postfix) with ESMTP id 21BA3605248B; Wed, 13 Oct 2021 10:00:12 -0400 (EDT) From: ohilyard@iol.unh.edu To: ci@dpdk.org Cc: aconole@redhat.com, alialnu@nvidia.com, Owen Hilyard Date: Wed, 13 Oct 2021 10:00:08 -0400 Message-Id: <20211013140010.25400-2-ohilyard@iol.unh.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211013140010.25400-1-ohilyard@iol.unh.edu> References: <20211013140010.25400-1-ohilyard@iol.unh.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-ci] [PATCH v2 2/4] create_new_execution_file_from_tags: add test argument X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org Sender: "ci" From: Owen Hilyard Adds an argument to allow passing in individual test cases to be added to the resulting DTS execution file. This change was made to facilitate periodic testing of testcases not currently in CI, such as rte_flow. A test passed in using this argument will bypass the normal behavior of only allowing test cases specified in the template execution file. This behavior because the mapping of DPDK files to tags is not complete, and to avoid not testing patches, the decision was made to run all tests if the tests for a patch could not be determined. Signed-off-by: Owen Hilyard --- tools/create_new_execution_file_from_tags.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/create_new_execution_file_from_tags.py b/tools/create_new_execution_file_from_tags.py index b88fa93..61d801d 100755 --- a/tools/create_new_execution_file_from_tags.py +++ b/tools/create_new_execution_file_from_tags.py @@ -75,6 +75,8 @@ def __str__(self): help='What type of testing to create an execution file for') parser.add_argument('--tag', type=str, action='append', help='The tags to create an execution file for.') + parser.add_argument('--test', type=str, action='append', + help='The tests to run along with the tests required by the provided tags') args = parser.parse_args() @@ -106,6 +108,10 @@ def __str__(self): else: # no tags given tests_to_run = [entry for entry in test_allowlist if entry != ''] + if args.test is not None: + for test in args.test: + tests_to_run.append(test) + tests_to_run.sort() template_execution_file_parser[execution_plan]['test_suites'] = ", ".join(tests_to_run) -- 2.30.2