From patchwork Thu Nov 5 10:50:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Po-Hsu Lin X-Patchwork-Id: 11883925 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 916576A2 for ; Thu, 5 Nov 2020 10:51:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 79408206B5 for ; Thu, 5 Nov 2020 10:51:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728523AbgKEKvl (ORCPT ); Thu, 5 Nov 2020 05:51:41 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:55475 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgKEKvl (ORCPT ); Thu, 5 Nov 2020 05:51:41 -0500 Received: from mail-pg1-f200.google.com ([209.85.215.200]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kacri-0001bn-G4 for linux-kselftest@vger.kernel.org; Thu, 05 Nov 2020 10:51:38 +0000 Received: by mail-pg1-f200.google.com with SMTP id o11so994307pgj.21 for ; Thu, 05 Nov 2020 02:51:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/ucULeTLjP6GOC7ulykS2yzYXoLzwUi9LCJDnywesUs=; b=pXccS4F+iv2v/SKZX5VjqDfkkS1HgGqMDxJ9gAe2s3p5OCTex4zYcawjla7lOJ1ghI m+51rB9oehGyLv0bDktZE8UkMHcmZx7bLfGHcWhypramnJ02s2CI/lV8CwPVMAtiNZcu OfTGwDMwiCAV/n5tUBdZgIaFqNLnqAoSynI592WJz/0c6ITSJh/YgkzjJ+y/3nYCCjvV XuwCC2D75hVFqa0B/EoRuO29l84yHvi33G5VgZEuXSy+HPuZjOaoEwJMqumURicnJQfC CajRsOqGzi0pLNcsJDIzuTUUPI6T45MxsIvzbqDUDGBXBbjXRdG1s4AjFznlz2puiLHK f+wA== X-Gm-Message-State: AOAM5333CeCMglVGCea7QW7+NifQE0TrV0tS0JaaHTTfwJixPiAPGA5F rahmhes/PZzoh27aL+i9qaxyFSzZV+E5Ke2b+WiUNo10ElMkuNUprP8bhlENrikzpMime1gLht1 RiTjGnlr91OGwFE6qva4LIF3fVk3/FaEImT3A96tkvChP X-Received: by 2002:a17:902:690b:b029:d6:41d8:bdc7 with SMTP id j11-20020a170902690bb02900d641d8bdc7mr1705422plk.7.1604573497163; Thu, 05 Nov 2020 02:51:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIl/S+AFKw+LnFNifIIHNzk7bmd7XgmkzcB0SlAFrCe6TT9vEqkRh3DGSqDxSaQkpk9TzTFQ== X-Received: by 2002:a17:902:690b:b029:d6:41d8:bdc7 with SMTP id j11-20020a170902690bb02900d641d8bdc7mr1705406plk.7.1604573496884; Thu, 05 Nov 2020 02:51:36 -0800 (PST) Received: from localhost.localdomain ([2001:67c:1560:8007::aac:c227]) by smtp.gmail.com with ESMTPSA id c3sm1866852pjv.27.2020.11.05.02.51.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 02:51:36 -0800 (PST) From: Po-Hsu Lin To: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, skhan@linuxfoundation.org, po-hsu.lin@canonical.com Subject: [PATCH 0/2] selftests: pmtu.sh: improve the test result processing Date: Thu, 5 Nov 2020 18:50:49 +0800 Message-Id: <20201105105051.64258-1-po-hsu.lin@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org The pmtu.sh test script treats all non-zero return code as a failure, thus it will be marked as FAILED when some sub-test got skipped. This patchset will: 1. Use the kselftest framework skip code $ksft_skip to replace the hardcoded SKIP return code. 2. Improve the result processing, the test will be marked as PASSED if nothing goes wrong and not all the tests were skipped. Po-Hsu Lin (2): selftests: pmtu.sh: use $ksft_skip for skipped return code selftests: pmtu.sh: improve the test result processing tools/testing/selftests/net/pmtu.sh | 83 ++++++++++++++++++++++--------------- 1 file changed, 50 insertions(+), 33 deletions(-)