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 10104A034F for ; Mon, 7 Feb 2022 15:19:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 05E22410FD; Mon, 7 Feb 2022 15:19:50 +0100 (CET) Received: from mail-io1-f99.google.com (mail-io1-f99.google.com [209.85.166.99]) by mails.dpdk.org (Postfix) with ESMTP id 16F33410EA for ; Mon, 7 Feb 2022 15:19:49 +0100 (CET) Received: by mail-io1-f99.google.com with SMTP id 9so16964023iou.2 for ; Mon, 07 Feb 2022 06:19:49 -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=i47/w6UZYhncjUCPYM/oEP1dhtxkpQfy3hl1Ks6s8WnzkEICurNZtQBaiUmQBXqUA+ nWEkAtiAzHLzyZCK12/DTcSstrLo8CfDlfrKuU04oWYguqesxg29nkwEeBq23CUKZRxT onO/hdzsR7lKgja4prCTYYOcuzIw4jg5kV6Ko= 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=otompnKtw4s231qNsIZpwkda6LVWb3l2sey2GQ+W3eEOe/zIeLo0RMuQQgozrU4CZ1 ub/nCZ169OpBHQC182IojPk4m3gHIPZsEVhErquj8P2ZtEyOyTQo3kG472MtZqwqak9c FSVpaGENgA+sQwnkt2Y084Dpc0xuJupNql9w09QuYlqyPBaLdnpdSBCvLu1O8udJ2aYh RMiWikzzlPQCkol6YBiOnBMRao51ARF3hGPcQn6uNMMxE/vrWGZaX+V5Y5JLSwiGz/oE KaAHr2DF3BE2jcS9HVt4MUhyrjG1khM3ALHrETymXqnAbLEOokiZB8osJ+5vyfn90Hfj HB/Q== X-Gm-Message-State: AOAM530Mx5jlmk5yyfTL3R9XbI8RqVMYLNuQMmNVgjaSiDNvqGujYY7n QBazCZNNAawJ/EhHYOuSAmPotiK3GoZoCoYsBw2fPV1C8Ot/xxnYO2U4W/wl5d3uKNjJJraNO8L YM+VzRZ0OvIBE6nEn/HrKecLQenQgYO2lIYz1GzZf7fdCrQxmNzPiXNmJfic//B7eOTJQhYBh33 OiJQ7XDkwt7NBB X-Google-Smtp-Source: ABdhPJwQAcZjoWv4L7ojHB5nmpDwX3VTd7xJNwSgNdoDt1uBhUyIJGGC/Bh6j+yXHCvP7XoKZYosttBlArbn X-Received: by 2002:a05:6602:14c7:: with SMTP id b7mr6022809iow.2.1644243588469; Mon, 07 Feb 2022 06:19:48 -0800 (PST) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id u20sm743571jad.23.2022.02.07.06.19.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Feb 2022 06:19:48 -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 DF7D96052472; Mon, 7 Feb 2022 09:19:47 -0500 (EST) From: ohilyard@iol.unh.edu To: ci@dpdk.org, alialnu@nvidia.com Cc: Owen Hilyard Subject: [PATCH v4 2/4] create_new_execution_file_from_tags: add test argument Date: Mon, 7 Feb 2022 09:19:41 -0500 Message-Id: <20220207141943.11673-2-ohilyard@iol.unh.edu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220207141943.11673-1-ohilyard@iol.unh.edu> References: <20220207141943.11673-1-ohilyard@iol.unh.edu> 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