Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1191724imm; Fri, 22 Jun 2018 11:56:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJWbujh+0KVKjm2NStjQGrzUzHMTW9+DUqTdUvbThmYR2f23cPup7tj6Qs/m06kj+nzzpMf X-Received: by 2002:a65:4241:: with SMTP id d1-v6mr2407753pgq.392.1529693801535; Fri, 22 Jun 2018 11:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529693801; cv=none; d=google.com; s=arc-20160816; b=piRf2I8YU+MZS/cdTzy7+bWZUY3XwGpxiBcwyk6ldMQDfLhyHLhDB9f4PKBnWz0Elr p49eB+dDC+MxOcqjlM8XSZ7/n2lFoLaFR8e2NnydQB4hWQDllN0cNW36apiigLxTdzXM NzpL6su+ixaF70UZflwBJQl2tWqXkMWSLVCjY3TOMVRrEM9Q03KI4eR4X0O1KkDBdNNV aAxVVuuaQ51ojBEf5wnt41jR6ZxDgYWDN1zSvX9KFpMwow2y5//bFGXDZ/+o3PkqfSbR Yl68iLoJ9WTHNHgbu2Yj3P/h9985Mj5Ez98SkdTVB492q9yRwoEtA8T+f6XOblTMd6nn l9uA== 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=mwS8CJyZeke6ueAm4WhBxu/Zk4s5vmR018Z8mY4mHOs=; b=yW7U6otCgMj/6yg7N8MX8Di2js0ue22CnLFZcplNnHEoWCO6hCRep70AtT8qz6hh+u wMKfR10sv05XfU7DIUhZOA964uK7/IWNx3zo595pCgWm+f+bEBokz5/I4ejgiVxwn9h/ efWLuV+HDmjpNZ33jGvdGjaX47PcPyGzIvUEG7RSEh4C9IgY/kky0qIzzyhlQF+ftF4l pQ3CvWU8WwRejpT690J5+73f/kzF06HgZg4QZgUxYw3cLpOGs5MqH005HB6ySRg8sGo7 778iWLep3K1TrC2ljtTzSpR6FZAW7si0QqMDQEyBSHXLgklKt130qCUsJB+TJxE4QP9T BUEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VAYdZSn1; 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 r7-v6si6534852pgq.675.2018.06.22.11.56.26; Fri, 22 Jun 2018 11:56:41 -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=VAYdZSn1; 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 S934324AbeFVSzr (ORCPT + 99 others); Fri, 22 Jun 2018 14:55:47 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:39567 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934096AbeFVSzq (ORCPT ); Fri, 22 Jun 2018 14:55:46 -0400 Received: by mail-pg0-f66.google.com with SMTP id w12-v6so3344139pgc.6; Fri, 22 Jun 2018 11:55:45 -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=mwS8CJyZeke6ueAm4WhBxu/Zk4s5vmR018Z8mY4mHOs=; b=VAYdZSn125zXZE3tkcqOFmfO1Pk7BTMGYRCatlqYSgr4eUs4vn68l1wB89xusC4lbx l6gEa5XW3CWT+c0RqYez7cErRaCI1JutgWptlvDO4zsyBRDGRW62GcNUt4Nu9NXrguZ7 rYdclYvgcGDpaFGCHgskNJ5yQ7CXuLSi4dM/cBXBWhjiqS+Kqmk/mkW55RLc0QuYHHAJ h0st/CiYKUctWlSTt+UWf+awdRVGYb5mqNiEcAzk/cgH18baaCN2bJKEnlPbf59vKurZ eztleO3MmgtiQEU3rvIbuCBdAC0GbGtblEijhQd8BgvreHD/roNvVpN8AakvFjdH7zHN lJbA== 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=mwS8CJyZeke6ueAm4WhBxu/Zk4s5vmR018Z8mY4mHOs=; b=RUjP2/0oBilv03EtXRf6J9DO/T5mnbwS7184uXpYC65JCi20yhi0UZzDYGaF6cOJ3U 2LI7MaOv1Bje+515gPYpHwswWWFcIEeEIHyYOI0C/KWR4/qk/QxJNAVyjDWYyv70VZcT /b8l2PVsHJgxBt7/4dbPjGQxXL49WdA6289jvwwsQjfBfRIHFjgyP/wvfgbvgbx3b9Hz T7rRPbGaupHF0L0WnfEeAn1JhfbmtWqEpWbnhsd55P1NrHoELRJja0dANZ0CwvwL0nm6 SzFtwFOC8HFH7kNkVZ7Pv6YoJKJCgtPc3tkQdJbATGQn+4V7IH0G78BrKOoPM9WQtPdv Y8Fg== X-Gm-Message-State: APt69E175ge3AKdHZ6PgxzUSqdp6GCEn9Oe9cS8yA5kjZUdZdKW98IYy 4W0yjtuKYbbpwcR3ZnHCLVTuNWdp X-Received: by 2002:a62:a30e:: with SMTP id s14-v6mr3027828pfe.168.1529693745531; Fri, 22 Jun 2018 11:55:45 -0700 (PDT) Received: from localhost.localdomain ([122.174.152.149]) by smtp.gmail.com with ESMTPSA id p73-v6sm22061389pfa.142.2018.06.22.11.55.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jun 2018 11:55:45 -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_lirc_mode2.sh testing script Date: Sat, 23 Jun 2018 00:24:17 +0530 Message-Id: <20180622185417.3452-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 The test_lirc_mode2.sh script require root privilege for the successful execution of the test. This patch is to notify the user about the privilege the script demands for the successful execution of the test. Signed-off-by: Jeffrin Jose T (Rajagiri SET) --- tools/testing/selftests/bpf/test_lirc_mode2.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/testing/selftests/bpf/test_lirc_mode2.sh b/tools/testing/selftests/bpf/test_lirc_mode2.sh index ce2e15e4f976..51184f8f9e64 100755 --- a/tools/testing/selftests/bpf/test_lirc_mode2.sh +++ b/tools/testing/selftests/bpf/test_lirc_mode2.sh @@ -1,6 +1,15 @@ #!/bin/bash # SPDX-License-Identifier: GPL-2.0 +# 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 + GREEN='\033[0;92m' RED='\033[0;31m' NC='\033[0m' # No Color -- 2.17.0