Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1327733imm; Fri, 22 Jun 2018 14:42:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJnGLHag/zQwpe0lA31ErEj6Ef5GP4BVXMNwabJwYimSG7Aj1OygZYeXh5PvOXOhmSqPL34 X-Received: by 2002:a17:902:b18b:: with SMTP id s11-v6mr3280433plr.190.1529703754097; Fri, 22 Jun 2018 14:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529703754; cv=none; d=google.com; s=arc-20160816; b=uyBIF/DHmGKQZdQOGC/lo0Iq94QTfy2grRf9m3ng4oNDqalSw2jSN+PA2ZmR6ubmPw pfMoY/yA/jpaLh0WfejRHj9myiBL+53/3NT5W/uHoT6Klg9efaCjq/tzGDn9kGvsEknE e0yGttardHVU2aoe+fFRxr6OcgxNZSCXlmGyGUCXir2YgOMANw3tmFspf5GUHRGJ9R8G mhQ5oa/wRTTaVWkpAE3gBvo3v+IlPhfYbzIEXhFXTou1Mol7NTa9Ol8d3x0N09qRluqc v7hY3loIqs2R5AgWZyrgaYUdrQed8k2v7PbujWakaj1kSgSyQmB7zldpptHvvne9MeAX SYeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=flrwo5qekPUqH9jcbphXhA4UST8cF3rFFudUaZk4MDY=; b=PhLfXAUXuEgmkX9g2I7xlaskSYh8raANXU7YlnDDDXb4PF+QPUGKY+y+cjVviS9JP1 /9hZAPMU/5kbi+ZMMmN8V/Dw2ybaqdwCVysXIT7LEQyYZ6jxFa71pmjLt+KDUUBKkx97 eKbiTNowKnYypT/2fNsrU9nseBZgidwYW0sNdSb0CwfJmhadxm+qIDKi8VYPJoqNwW6I foLZDBR7M8cocJ/sy21Q3L/D6YIPO1B9vS/7xeIKjPaoVmjAKuZru1E0URSkxrKg2WzJ /WD5AR8edISEyPJA2fbYDCZVctV7+BIop24qyg2PWwCn1RNj5yKybAvlVee2yGmhal8t FRqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZRNCiUw2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11-v6si6736405pgp.234.2018.06.22.14.42.19; Fri, 22 Jun 2018 14:42:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZRNCiUw2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754552AbeFVVln (ORCPT + 99 others); Fri, 22 Jun 2018 17:41:43 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:36449 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751445AbeFVVlm (ORCPT ); Fri, 22 Jun 2018 17:41:42 -0400 Received: by mail-pl0-f66.google.com with SMTP id a7-v6so4055717plp.3; Fri, 22 Jun 2018 14:41:41 -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=flrwo5qekPUqH9jcbphXhA4UST8cF3rFFudUaZk4MDY=; b=ZRNCiUw2P4bsGZfFmI1WqulBobIy89yoac0+k3xwev6naGpKRtMurJ9q5ekfo2lior NdnDdRDuuhcI0c+99HiMQNzTyyd0gHWVLWQO2aS1jwHT9gMKNoxC8yowwwTmkV4IX2Td PfRySHTDP99fz3FeH3KW4dCk/TSeJSZu5Zq4xcYxpLaufPQ3OOfPQZ5kJByAmcehPaTT 9mAtPIO/agAIB/6UvFWLp9BRpNO/SXL78/yBIQtQPFk+rSgp04dPnsL/lcB+41hb4Os6 P+QsWeNJstF1U45eYskpAsIg13UXc3BU1VizfjdeUG4oWQZEOv2hSB/u5v+VXNT5pJka iO5Q== 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=flrwo5qekPUqH9jcbphXhA4UST8cF3rFFudUaZk4MDY=; b=lhIP+BbWWeojoyt6yEh7idURfYOszFFmb5n6tYr4YfEDylt4nkp8F9FnTaNJug6Nw2 ZIDVrK6yPsCCWM343zvtprTnoCqCVHcD0jklS4DOXBj6B65fdlR84zj5i+XBk6JCEHqu cHzoZYFOuX2fftpTwLeM1ENcjETVGB1eczSKQjdUXlzj6q/f6v9IC60XWuhgS06tMN0U fl2R1KYs7HTqWGFfzze27DrdkuwfAcEmhMCVWJHUl2b3fVxcBDuztkYQZ74wybSce2ZP vuWdcJAFRx3uXekNSiiVtMzT8SG9yjhJoCajJSM4QRbCi3746/PebcBzSCyj0aS9Kx5A h0zA== X-Gm-Message-State: APt69E2cW2CFjGQezz3fBsocVdrv4kAAfEPdy9N+cZzkucEbonKQw33Z BUrbI8HpjUag1/Vhb1xxsZOQltHJ X-Received: by 2002:a17:902:d808:: with SMTP id a8-v6mr176015plz.188.1529703701610; Fri, 22 Jun 2018 14:41:41 -0700 (PDT) Received: from localhost.localdomain ([122.174.152.149]) by smtp.gmail.com with ESMTPSA id r188-v6sm12293146pgr.78.2018.06.22.14.41.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jun 2018 14:41:40 -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 v2] selftests: bpf: notification about privilege required to run test_lwt_seg6local.sh testing script Date: Sat, 23 Jun 2018 03:10:32 +0530 Message-Id: <20180622214032.6527-1-ahiliation@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This test needs root privilege for it's successful execution. This patch is atleast used to notify the user about the privilege the script demands for the smooth execution of the test. Signed-off-by: Jeffrin Jose T (Rajagiri SET) --- 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() -- 2.17.0