From patchwork Fri Jun 22 20:00:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeffrin Jose T X-Patchwork-Id: 10482975 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F3BD8602CB for ; Fri, 22 Jun 2018 20:02:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E369820415 for ; Fri, 22 Jun 2018 20:02:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D642D29001; Fri, 22 Jun 2018 20:02:06 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 7D9E720415 for ; Fri, 22 Jun 2018 20:02:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934441AbeFVUCF (ORCPT ); Fri, 22 Jun 2018 16:02:05 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:41396 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934393AbeFVUCE (ORCPT ); Fri, 22 Jun 2018 16:02:04 -0400 Received: by mail-pg0-f67.google.com with SMTP id l65-v6so3411859pgl.8; Fri, 22 Jun 2018 13:02:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ZarrWeOtfLOvtpADNHhMMYBFW0YiDE+qy2ObmHNx7M0=; b=ZEp7k2WYbxCFqK8VU0uc24LMKAAphO7lttaA34xKvsQ/rqGYRzP885Pj6O8Z8EqM/M YnMKP3NjB4Q153c+6HhWWXVRZm3gOE4OHtazqIV1pWPdCE2BhEQ+ZWXuSHbHIVINB2n5 15sVD1evtOo+R1ImBfd4Ho3rmKiALGjmsh/BrtsLt+otMvIWqOzr6v1bCIW2N+MyNJip krYwsZOkNPBaSKke+nln8it5nePBIJIPAT2W2xxsR87in7542buInZC7jg/wp99/j8Qn jL8NfCe0orIixEUYxuK6NBPiYMHfM6zRGWSZveR+DtTB8GmDoJ3OhVtSMVYimlhGC/Hm Kncg== 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=ZarrWeOtfLOvtpADNHhMMYBFW0YiDE+qy2ObmHNx7M0=; b=MNOiA7lWcm38jnX73M5g1ebaAc1qz62AWlJACY/fFTcP2MgYNeiSu4YF9LNqn6WWQO NoUd06ZbVnsFouKQpgcNtBdhYxvf5N8Abcyv+x7hrCMFmtBnjvzCjcvmfUZI4zMDo5mK LeCgvDK4+FN8DWBYXYRdkx/nAIHhYld+3QCujkswWHYpRe7Pri6HgTb5E2Nt5lwu4wVj 4qZ+JiuqsZVYwCWgs883OPmojwXA7E2QU29Wgv4GqhBeFW+ZeUBhIPVIrvC+zT7dpH+5 36qxVV5NJt6iWogj6iiaZ3C7/2ucL3bsdD/RJhnrYvt2A7WlpjDy7grIW9oUwAYFO9vh yO/g== X-Gm-Message-State: APt69E1h4Znp0UcDFiUtOmr5+sLqKykUgqpu9qbzH48zeUN9spOK5OQJ Tws/dG9GoLrLalTPGI450PHBtdR2 X-Google-Smtp-Source: ADUXVKLqWBc6ZytmTcsrWhruzv+zlM0GEGzEvpui40r76Bqhp7kQ7sER2mw3DuQDTkGx/al3g9CVJw== X-Received: by 2002:a63:41c1:: with SMTP id o184-v6mr2651038pga.323.1529697724350; Fri, 22 Jun 2018 13:02:04 -0700 (PDT) Received: from localhost.localdomain ([122.174.152.149]) by smtp.gmail.com with ESMTPSA id m21-v6sm10352370pgv.27.2018.06.22.13.02.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jun 2018 13:02:03 -0700 (PDT) From: Jeffrin Jose T To: ast@kernel.org, daniel@iogearbox.net, shuah@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Jeffrin Jose T Subject: [PATCH] selftests: bpf: notification about privilege required to run test_lwt_seg6local.sh testing script Date: Sat, 23 Jun 2018 01:30:53 +0530 Message-Id: <20180622200053.4957-1-ahiliation@gmail.com> X-Mailer: git-send-email 2.17.0 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 This test_lwt_seg6local.sh will execute with root privilege. This patch is atleast used to notify the user about the privilege required related to smooth execution of the script. Signed-off-by: Jeffrin Jose T (Rajagiri SET) Acked-by: Song Liu --- tools/testing/selftests/bpf/test_lwt_seg6local.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/testing/selftests/bpf/test_lwt_seg6local.sh b/tools/testing/selftests/bpf/test_lwt_seg6local.sh index 1c77994b5e71..30575577a8b2 100755 --- a/tools/testing/selftests/bpf/test_lwt_seg6local.sh +++ b/tools/testing/selftests/bpf/test_lwt_seg6local.sh @@ -21,6 +21,15 @@ # An UDP datagram is sent from fb00::1 to fb00::6. The test succeeds if this # datagram can be read on NS6 when binding to fb00::6. +# Kselftest framework requirement - SKIP code is 4. +ksft_skip=4 + +msg="skip all tests:" +if [ $UID != 0 ]; then + echo $msg please run this as root >&2 + exit $ksft_skip +fi + TMP_FILE="/tmp/selftest_lwt_seg6local.txt" cleanup()