Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1250400imm; Fri, 22 Jun 2018 13:03:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLfjKC0WqQ9boiMJqjFayLIVjC4KtwN/sABtgnikV0mf/5K29tzuzWQaW4nW4qBDBHG3vfb X-Received: by 2002:a17:902:1081:: with SMTP id c1-v6mr3013195pla.153.1529697822233; Fri, 22 Jun 2018 13:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529697822; cv=none; d=google.com; s=arc-20160816; b=zqf68A0xHPfLSh033sL5Ri55fwK70YVA24vlV6JNVgdAQzTyddL09dChFzdzYFvNxB cqE/ZcXlkahbnEG4ZZTniGubH4AAv5LKlCWM0z3sQGGgmB0qY8lMf+2S3DjaQP6caRZf jRiO3OizX3w3F9Vv+EsmS+8gEbarggQTtARVTNU4a8pnhJkxNQYinZX7imZ+HQ0ty686 Vrbl/Hsy5FgEoYkG47x6JHmPIG9GTR4AsdyzXER35M1QJnNn9rnP0aOiSjWRRfTF8y8e vVPIPtuVzSpdZrvq9HWVm7R4fJcx2APCuXG1DnbxGbW5VuVjUjJDIotPHaay9sVdJCWd q8XQ== 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=ZarrWeOtfLOvtpADNHhMMYBFW0YiDE+qy2ObmHNx7M0=; b=sFoAqgWHZ+ExFfsC4ImXYTrhktdz34J7zgX/TgY9HnWbU8r6/dbMVsQjmLNd2JGN0O ApZcj6AZt0YDeK4Z6V4PWfD2deH/dEnEZO+SkyjczTySTX2T70cQjZsCF8dzbZo4mqiF 7fPz4zhOVYZQG+hH4eNlwfDmXBY/JXS9cfho+ogxuJV+OFKredinD91Hu/4zX3NSqiAc VGIRMriABQQ32EV4hyHs3GrPqrzm61Cv5aMFHm/nV5ZoZ+sxFisdrm6AF7Y+H4h6nDl9 tcRmE0i17/xtkCIOlMaZ9ltZy19kvd0hOF+DXph1D/DzJqqbj/8bzE2xbnAYlTdVP+2q dKVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZEp7k2WY; 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 p25-v6si5740331pge.582.2018.06.22.13.03.14; Fri, 22 Jun 2018 13:03:42 -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=ZEp7k2WY; 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 S934511AbeFVUCG (ORCPT + 99 others); Fri, 22 Jun 2018 16:02:06 -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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) --- 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