From patchwork Thu Apr 18 11:57:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Po-Hsu Lin X-Patchwork-Id: 10907129 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0620A161F for ; Thu, 18 Apr 2019 11:57:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E32051FF7E for ; Thu, 18 Apr 2019 11:57:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D72102850D; Thu, 18 Apr 2019 11:57:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 777361FF7E for ; Thu, 18 Apr 2019 11:57:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388880AbfDRL5v (ORCPT ); Thu, 18 Apr 2019 07:57:51 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:37012 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388703AbfDRL5v (ORCPT ); Thu, 18 Apr 2019 07:57:51 -0400 Received: from mail-pf1-f198.google.com ([209.85.210.198]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1hH5fp-0004ZK-EI for linux-kselftest@vger.kernel.org; Thu, 18 Apr 2019 11:57:49 +0000 Received: by mail-pf1-f198.google.com with SMTP id a3so1256527pfi.17 for ; Thu, 18 Apr 2019 04:57:49 -0700 (PDT) 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; bh=etpmiN+xcWyQHOYZT0YCvEMFjAgyXGH8FrUy6K2Kx3w=; b=GmAQxqaZzwVeZ9vyurnfwauXuG54GH0InQbC8JX82+wK/Ban9f1O+uZgPTO7EsQgSU /icDrgA8X5a0agkbG8zec/sEGt+NRiKEOrP9IVplVKMDtjxoeOMoC2S+ypSewQLfSXMk Eg4agmeSmiSjDOekdxQ5hnS8sDuJPnAmzlY7S9tcvSFLZ7/iNSFGtBo/PW8ZUIfV820Y k0KsoCxjPsHIL1B7b2VmjhEq670n8/Q3SQh37MQtnx7/+YrAL0lkbSnbRE1gTUq74Cc8 Zs6zEbgOSdcDBx4jEzLbVp3Bwjz4BHc7m37/PxtuAAiJncuB2aLtVS89rE9mb6Oj/qyN nohw== X-Gm-Message-State: APjAAAWFXynlVv/tLl7QaozatL2Nt8exKxzBJLx8wmUsLQqXJHwYP570 51//kNarGNu36dpUccGyZZAiQZ8G2HeOnYRi/4Qa/bfyc0p+gLJH91puYSarQvSzLrniRR5RRaB kLXfSiHTz2d78fzMGwhojRZlGK4aHGZ2qWNBLreHP4nxz X-Received: by 2002:a63:dd10:: with SMTP id t16mr5205602pgg.446.1555588667913; Thu, 18 Apr 2019 04:57:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCeCihKAZ3Cz74jx9FqsFyclFv67+Cd1vJpg1Rqha19b+iOYdufXpNs5femRBF2vGeLftk9g== X-Received: by 2002:a63:dd10:: with SMTP id t16mr5205577pgg.446.1555588667511; Thu, 18 Apr 2019 04:57:47 -0700 (PDT) Received: from Leggiero.taipei.internal (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id 8sm3321382pfs.50.2019.04.18.04.57.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 04:57:46 -0700 (PDT) From: Po-Hsu Lin To: shuah@kernel.org, davem@davemloft.net Cc: linux-kselftest@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests/net: correct the return value for run_netsocktests Date: Thu, 18 Apr 2019 19:57:25 +0800 Message-Id: <20190418115725.6833-1-po-hsu.lin@canonical.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The run_netsocktests will be marked as passed regardless the actual test result from the ./socket: selftests: net: run_netsocktests ======================================== -------------------- running socket test -------------------- [FAIL] ok 1..6 selftests: net: run_netsocktests [PASS] This is because the test script itself has been successfully executed. Fix this by exit 1 when the test failed. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/run_netsocktests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/run_netsocktests b/tools/testing/selftests/net/run_netsocktests index b093f39c2..14e41fa 100755 --- a/tools/testing/selftests/net/run_netsocktests +++ b/tools/testing/selftests/net/run_netsocktests @@ -7,7 +7,7 @@ echo "--------------------" ./socket if [ $? -ne 0 ]; then echo "[FAIL]" + exit 1 else echo "[PASS]" fi -