From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 268E026CE39 for ; Tue, 16 Dec 2025 14:21:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765894900; cv=none; b=sgKh4Y5P9K1dDZxWnsRBLom+O6YbLE0T8ZNIibyzp/sDYIZUsnkuD8IZZQmnlfBCvqmyaJUJcQgpds0V4E2sOfh0ODRefsv663+aKIwNXxnBfk3JUQYjiSCz5U51jgQbXImbmxvH6V17lb1ChXE/UQNM6g7yMwnMYvrLvo1Orxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765894900; c=relaxed/simple; bh=rRg1rU7RdBd7Gq/Vczw/5nedpV2H6E5sTzFYSK2TRDk=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=XthVsP02OeA2pzMNPJU6GqBwT1jY78xChMOX2yCGSMFCGKfpCi0ZMzB/1hQH2jT/VXpja5i1cDmWHczFOFTDHX6+M25x91oj4+eXYm27MoOF2okAQYGa+nC4RAyCN9Z9qnEpeZYWvO40X6qxxrZWgDHbGopSIQCVW3amokvZhxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=a/gSau6p; arc=none smtp.client-ip=209.85.128.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a/gSau6p" Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-78c5b5c1eccso62486097b3.1 for ; Tue, 16 Dec 2025 06:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765894898; x=1766499698; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=N0mup+HLlOmrVWqFXbyf+MzotU/km+jMX39WXot6KIA=; b=a/gSau6pK/u1fIeU4zuETqT0VmX0W0tfKs7peZ9Fauug8kh0UZGSyaxxrvyeFJst21 4gy1SWA3wp9Zx7sHocCCp2Z3af95NwabA02wFYIStJkCoI8p57dTfyb9vqwSIKQN8So7 6KWpnx03+pQ4K9l1NK95ILFRge3F7ntylo5SGzfLbTyDrOfu5swJ4A1GMeFg/tVA4BDA 1Ta/VUIHtKBg/aonSOOa9GOyZmitqo1baKkHEiHm0m3kVKC21snSh5pRA8NkL8AZLCH3 tkpevNRRh8bHcHNpU+N9uyBiIa4n6vYbA+zOXY8spnqs8ug20uX7MU4npDjTGPUMaV+o o/eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765894898; x=1766499698; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=N0mup+HLlOmrVWqFXbyf+MzotU/km+jMX39WXot6KIA=; b=Oe9fgHBeBvdyXc2InI+kgIVpRMuG3Qqfw5SLBKPNqmuj8sZAiXViWifDKczAgk6qnx 9Pu1aeWaewIHfQMkVFjQVXX6RFkh6QDu9OH1xPJfN7uleAf+lPB7cCnyKaHov+2m1XI/ Ef0/V+hUFWkGCMn5nK9qRhn82dCLofULSGwx0jpGaS49P9YOExT9sIWoP/8eEOGbyzNY kJSIjtkpDHbfMSIW03V+jMmP0NnSiQWMbmHTT7HgS7X/j71cgWs2n8xX4CPs60+qFXuz VbqMlupBSyPB5mI/ld7v7YRf27A+Cta5A0M9Wg1Ns3BNJ947DNrXRQsKBp8JxVpaMXvD t/9Q== X-Forwarded-Encrypted: i=1; AJvYcCV4ywoEFlLaZsMee+OLEMr2YtmPA+ccCFExqkEeRiVDeKVM1RfgoX9/ANqzqpBw/SwLCmnleMJ3fIlS034=@vger.kernel.org X-Gm-Message-State: AOJu0Yy+1qwH958hmOI8Te4kQ8RYejQZTKiCjKXkylAAzurn++KlQFZA RQj+npuohGeBt21AysjCXAqfngp05RatXoaWIUjdlKDMqlMmpDDyfBRS X-Gm-Gg: AY/fxX5Ox2wrPktiix6xhshFHUGqHK1S5uVj1Kiz6cOoGEArUABNhdITvEGQ31ww4SH 1HKqExSIsE/Rq0ugnialXdtFqWrL73bDWVIFmj7taFSmSOWqGqverK3AObqvA9vIWyagkA9ujwl QGBC16GjCcSNJz5hhOTNWUagUap4ct5if3WtJYsGRJQJVpL7KDrx3kHr2aQyuoVThD4hsx0g9jA m70wkW6rJqgs77a5U5rlmQwl65Gnd97RGV1MltVks9Cyj6EIpkhPw4d02wDOFYDYYSFPt+AXhOi xe2NYF8N7OLJLjAheaSidMH6Imws7KVrsjEkgsLw8EAGb0gp3FUrurpNNvok1gcn/7EOO7ef5dk QZAsPczKj5cRJWZ9yh1RF+1RXWz93VQBLxEQT0tkKbpeBwqP1WAbSpDBbNVUPNjiHFPBzF3ESgM 8xAlg2Ic3QK+G9AuiY7jAd3n36EfeSxAk= X-Google-Smtp-Source: AGHT+IGejGVDSZX+7LKGxziOgzMccisD2YOnvJr92J3v9iAv92NOwjPH5YZx0F1XbU1v7gDjsWQY9A== X-Received: by 2002:a05:690c:4c0a:b0:786:8410:31f6 with SMTP id 00721157ae682-78e67155d6amr106126917b3.22.1765894897917; Tue, 16 Dec 2025 06:21:37 -0800 (PST) Received: from localhost ([2a03:2880:25ff:58::]) by smtp.gmail.com with ESMTPSA id 00721157ae682-78e749e5bccsm39322147b3.26.2025.12.16.06.21.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Dec 2025 06:21:37 -0800 (PST) From: Daniel Zahka Subject: [PATCH net 0/2] selftests: drv-net: psp: fix templated test names in psp.py Date: Tue, 16 Dec 2025 06:21:34 -0800 Message-Id: <20251216-psp-test-fix-v1-0-3b5a6dde186f@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAO9qQWkC/x2MQQqAMAzAviI9W1iLivgV8SCz017mWIcI4t8dH hNIHjDJKgZT80CWS03PWIHaBvyxxl1Qt8rAjntiYkyWsIgVDHpjcCMNvnMre4KapCxV/7sZohR Y3vcDi6GTbWMAAAA= To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Willem de Bruijn Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Zahka X-Mailer: b4 0.13.0 The templated test names in psp.py had a bug that was not exposed until 80970e0fc07e ("selftests: net: py: extract the case generation logic") changed the order of test case evaluation and test case name extraction. The test cases created in psp_ip_ver_test_builder() and ipver_test_builder() were only assigning formatted names to the test cases they returned, when the test itself was run. This series moves the test case naming to the point where the test function is created. Using netdevsim psp: Before: ./tools/testing/selftests/drivers/net/psp.py TAP version 13 1..28 ok 1 psp.test_case ok 2 psp.test_case ok 3 psp.test_case ok 4 psp.test_case ok 5 psp.test_case ok 6 psp.test_case ok 7 psp.test_case ok 8 psp.test_case ok 9 psp.test_case ok 10 psp.test_case ok 11 psp.dev_list_devices ... ok 28 psp.removal_device_bi # Totals: pass:28 fail:0 xfail:0 xpass:0 skip:0 error:0 # # Responder logs (0): # STDERR: # Set PSP enable on device 3 to 0xf # Set PSP enable on device 3 to 0x0 After: ./tools/testing/selftests/drivers/net/psp.py TAP version 13 1..28 ok 1 psp.data_basic_send_v0_ip4 ok 2 psp.data_basic_send_v0_ip6 ok 3 psp.data_basic_send_v1_ip4 ok 4 psp.data_basic_send_v1_ip6 ok 5 psp.data_basic_send_v2_ip4 ok 6 psp.data_basic_send_v2_ip6 ok 7 psp.data_basic_send_v3_ip4 ok 8 psp.data_basic_send_v3_ip6 ok 9 psp.data_mss_adjust_ip4 ok 10 psp.data_mss_adjust_ip6 ok 11 psp.dev_list_devices ... ok 28 psp.removal_device_bi # Totals: pass:28 fail:0 xfail:0 xpass:0 skip:0 error:0 # # Responder logs (0): # STDERR: # Set PSP enable on device 3 to 0xf # Set PSP enable on device 3 to 0x0 Signed-off-by: Daniel Zahka --- Daniel Zahka (2): selftests: drv-net: psp: fix templated test names in psp_ip_ver_test_builder() selftests: drv-net: psp: fix test names in ipver_test_builder() tools/testing/selftests/drivers/net/psp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- base-commit: 885bebac9909994050bbbeed0829c727e42bd1b7 change-id: 20251212-psp-test-fix-f0816c40a2c1 Best regards, -- Daniel Zahka