Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3475412imm; Sun, 24 Jun 2018 22:09:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIyIuIx3o3X9ILaOnUeC2vx7Fi7jeV6CjSEtzyFhbfevlcQD0q/9phIgTe39q5SUGoLdNbK X-Received: by 2002:a65:4042:: with SMTP id h2-v6mr9147140pgp.78.1529903389812; Sun, 24 Jun 2018 22:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529903389; cv=none; d=google.com; s=arc-20160816; b=lwzKlD4Ih6+OR0ASb2AcGvm9zTYhn+kbpf5M3JSvELxIuqRlPjiUw6QlWDLYyGQeFo QBONC59ffyysZ3Z0XZLMZrPnY4KGsm9vkvAO6LdFPA4hH4LcTXjhZ2X1NcMSsDL3XPTD mkiOA5Z87UhEFHb5KoVmWdKP+p9Lht52FiKdQbr2j+TTrT5e6j7p3cjNilpenzzuJhDx vilTKH9vYV1Vs6vBSYw9BEH/fCq62BwIa52o7n6uUiYNR5+sO4mGo7hR/zOh3Qfbhl2g RnyTMy3p9xFQD+AfEfOh5RQ9+K9RwKfpUIDJABD4YMYndl6ggOGcCWRyIlvnvY/p28iS 1fCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=xQNLyaNt+SMXTxgmbyMA/LXag7ETmkz5e39c/TCVGlE=; b=1H0d97V7TUPdEu6kvHwDYy7iRZRt+lQDfS6Nx0LZPE7KFzFCTBb4GrF0++nLyI6pfT x3exfLVxZMJXSs8F7PNbmCf2ZCQKguKyaeFl+/6v1ClCjHjd7K4eaVFXkGiCvNh0Fn0g 14W9xD8Og1OnKGuUPWnoFJbNyW7vxQhRL28vCUUlazzyo43hLbrya21PXMY1U5fb7COE cdGBhdawJuxEOT1vk7bMj7VxwGafmg9Q3ST/H+40Ca6SONAIh5et6J2ZGBRpjnyf6VYC AqbXKR/bOQfeHT8QOml2CXGqUizAuEqj7BJsGdg+xCritFi83oWOsABJmLVshmHgUDGQ ua7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ECmRSVxO; 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 6-v6si3794367pgg.366.2018.06.24.22.09.35; Sun, 24 Jun 2018 22:09:49 -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=ECmRSVxO; 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 S1751607AbeFYFIz (ORCPT + 99 others); Mon, 25 Jun 2018 01:08:55 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:35349 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751037AbeFYFIx (ORCPT ); Mon, 25 Jun 2018 01:08:53 -0400 Received: by mail-oi0-f66.google.com with SMTP id e8-v6so11285362oii.2; Sun, 24 Jun 2018 22:08:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xQNLyaNt+SMXTxgmbyMA/LXag7ETmkz5e39c/TCVGlE=; b=ECmRSVxOe0cuptJrM6VGL7VXg0DjO3YLFDqz9IfiDglxFGNpNfj7gh+52m701Oe6Z5 SmJRQUQ0eQ4IuVyx8tPI14VKQpVPgHVCQK92NuDwHTdGgHO1QhdQrjFG/kY43Mw/bq1R /tNFb5VspoTxbL1nYO3RxntYTt+uVC30tcV/4hS+S9zQ4Kj7n48c5kP1qQ3rYkvdOmAz lCCh0qFnsYO3y992ZO57afGTsZgXcYpv95CC6RPuLcpr6c/DeRDOPD0JoyRu148xOUVP rM0W+J5b2t15MjwQFxPe/uK4SSMZLNxJqwq/mbe//HZ1nY31V8SAVmFzJQRkS1bkEKIK T5Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xQNLyaNt+SMXTxgmbyMA/LXag7ETmkz5e39c/TCVGlE=; b=j76FCXO/kn/kU9Sepe+FZ0N848VX7hqGVZ2W0V76I8WCvDPmjFJF1UfqxxK45uEQMa iOtGjyaXcu2CG6MTRsyggVKFRYkPATOEoMgYLapLgWvmiHUF+lWOKoWcRrSHvBFVVNEd pKk5UWgZH823Qg8XeHiTf8qKyeP/Pd8tpK9Z3XJpbaQs/2zvn6Z3lNBSvCgdN6nU5pt2 rBxZe82UTfeBlxrjnbWNVAON9XO/p/QODlgZPIPrwArO3EWooW65zParYRxMuIh8TtBU rm/pI77CpOo2V1z8iI/i1pHiH9kFVoSNenr2OgumwqEAuwS6T3EavEnVNQb/Btd+QAXa oj/Q== X-Gm-Message-State: APt69E1kQuvKssSQ2myyzhHnbxtrs8hCShj+qbfooVFjQwuHz6+6YD1t vyfVxcvgwlidPeeGcAgVvATQDpBWrKQzIk1+yC0= X-Received: by 2002:aca:3788:: with SMTP id e130-v6mr6166270oia.21.1529903333382; Sun, 24 Jun 2018 22:08:53 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:4b10:0:0:0:0:0 with HTTP; Sun, 24 Jun 2018 22:08:52 -0700 (PDT) In-Reply-To: <20180622185417.3452-1-ahiliation@gmail.com> References: <20180622185417.3452-1-ahiliation@gmail.com> From: Song Liu Date: Sun, 24 Jun 2018 22:08:52 -0700 Message-ID: Subject: Re: [PATCH] selftests: bpf: notification about privilege required to run test_lirc_mode2.sh testing script To: Jeffrin Jose T Cc: Alexei Starovoitov , Daniel Borkmann , shuah@kernel.org, Networking , open list , linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 22, 2018 at 11:54 AM, 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) Acked-by: Song Liu > --- > 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 >