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 CC7ECA00C5 for ; Tue, 1 Feb 2022 22:35:57 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C122D410F0; Tue, 1 Feb 2022 22:35:57 +0100 (CET) Received: from mail-oi1-f225.google.com (mail-oi1-f225.google.com [209.85.167.225]) by mails.dpdk.org (Postfix) with ESMTP id 75C2F4067C for ; Tue, 1 Feb 2022 22:35:55 +0100 (CET) Received: by mail-oi1-f225.google.com with SMTP id x193so36155099oix.0 for ; Tue, 01 Feb 2022 13:35:55 -0800 (PST) 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=cFTsqAl3zDSwugDJlKrn/Yt7Vtb/S8/mFyuE6KlkA3U=; b=NJIS5cT5v3/kh2jXbo4ZEO0GRU3tjZrhGFDJra1FBw5fDJa47jd2FvZkfSKaMhF//N ySszG17UHCxdfvuG+/Z6troi2Setm53xs/6GlgazTxAkaD/Q03XPjahhsOZFII3O5APg oN4BXgU98YyqhH6QqUiycmjx6pC1HLqTiC4To= 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=cFTsqAl3zDSwugDJlKrn/Yt7Vtb/S8/mFyuE6KlkA3U=; b=h9fr3ubxFKI6SU0UGKuYJCJlqeg8tEbCrhRpcT9ypSPqpeGQvLOaJKOuJSAMIZoGzL ln2TO31hNLJAf6k3EGjWbceT6XgyYr3ijDHDRzCuUenSF/1w7VJ2fDIsFgWQRZf1SIuZ S7Yno8GMEXoGgglU104jVmlrrmmt92hnGwbO2Irrm3cJNIVSyWySZaVudHgZ4bdD4ecq NO+7I/n8k1T7G0iZvAxuuOC4wVbe9R4hVvsESX8NlI6rfVfnbrXh599t4sY4+vG+Wo4E clMj2Eytx9PWjZFrBeGR5HMWqWHD2Yo0DWZqEfmndFEGMto0zsRaQD48cmuG35o8Ls1Y IDtg== X-Gm-Message-State: AOAM533fcuETz2LR7GzhDSKCpF1C1rCvH2Esa10C4Ezozc/K1hd1d3bV An8UZoQOfeto25YRBa1zYbtCUNLWj82cpDXODw9apLZ6mdWQ9GC3CD2U+CW3Kgey00lPbepwjUn L6k+aaHc2CLrgoctBR8MW9Lfv6XNo2aHIhC0SBvpT9jSqmVr+l71l7vVntOEe2FArYQCCFjqg X-Google-Smtp-Source: ABdhPJxL412Lh0BjmdtLY5z1Uluds/k8g+3nZ1B+1QIlzXzkr06jxq5SV1jFmpX04JHESHk+6+NHCoFvJ7ZH X-Received: by 2002:a05:6808:1058:: with SMTP id c24mr2614057oih.288.1643751354774; Tue, 01 Feb 2022 13:35:54 -0800 (PST) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [132.177.123.84]) by smtp-relay.gmail.com with ESMTPS id h5sm1924717otr.4.2022.02.01.13.35.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Feb 2022 13:35:54 -0800 (PST) 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 E46B36052472; Tue, 1 Feb 2022 16:35:53 -0500 (EST) From: ohilyard@iol.unh.edu To: ci@dpdk.org, alialnu@nvidia.com Cc: Owen Hilyard Subject: [PATCH v3 2/4] create_new_execution_file_from_tags: add test argument Date: Tue, 1 Feb 2022 16:35:43 -0500 Message-Id: <20220201213544.15754-2-ohilyard@iol.unh.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/create_new_execution_file_from_tags.py b/tools/create_new_execution_file_from_tags.py index 60ad663..58bcf1a 100755 --- a/tools/create_new_execution_file_from_tags.py +++ b/tools/create_new_execution_file_from_tags.py @@ -75,6 +75,8 @@ if __name__ == '__main__': 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() @@ -105,7 +107,11 @@ if __name__ == '__main__': tests_to_run = list(set(test_allowlist).intersection(tests)) else: 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