From: Jeffrin Jose T <hidden> Date: 2018-06-22 18:55:49
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) <redacted>
---
tools/testing/selftests/bpf/test_lirc_mode2.sh | 9 +++++++++
1 file changed, 9 insertions(+)
@@ -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$msgpleaserunthisasroot>&2+exit$ksft_skip+fi+GREEN='\033[0;92m'RED='\033[0;31m'NC='\033[0m'# No Color
On Fri, Jun 22, 2018 at 11:54 AM, Jeffrin Jose T [off-list ref] wrote:
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) <redacted>
From: Daniel Borkmann <daniel@iogearbox.net> Date: 2018-06-26 10:22:52
On 06/22/2018 08:54 PM, Jeffrin Jose T wrote:
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) <redacted>