Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3296034pxb; Mon, 16 Nov 2020 10:36:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeky8urIS0/iu2tNnov87pvSMRijjfuo8aUU7Bvhy8laiIycgKjJezUhPqXBgrt9uJU0L/ X-Received: by 2002:aa7:da44:: with SMTP id w4mr17138486eds.131.1605551817367; Mon, 16 Nov 2020 10:36:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605551817; cv=none; d=google.com; s=arc-20160816; b=My8P9dAJQncdPb1M/NDXlgvgqO7xsLJeubCzkHA4iOrdGgPvhvOCLWjljt/GY2kQE9 C/YQBDEJDdpvBXPf4iLTvSd2eWU4PejDLSScgh3sX/py24gIXEKWPvZnniyRHy/YUITF Myz521dBpdWhPFvM7Ie2USXn5NpvTMQmJxAxHl5Oj4cClV8MPB7nJc8K5hgUngnZ0DUt 3iA0tEx8KAJyNjlCLyEuTkvlmcghxmSMjePOwQngBhvQp7+U5/5Bs3vazZIi+WzITFlz LroIK+sQE0WysjjzdlAqCjkYL9yDOBy23C3IIJpOlrBnQMXLDFANlKlG5ZczkAi5bhy7 KKyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=R9lE9d9/CKJRF5PYT88VMKA1TfCL9raVeHb+lUFo8Cc=; b=sWwSphPsbhiL+7EOi858GvkA1ycJuxAhpgANT2sCxtiYixo0P8d4v5gIgU7Vwn/dj8 ZbTp1y/PDicTBRFfDOD7QcXEgWWl/dAamZhfMHJyw3NZwpKqgVEjEFR/cuOe7CDGKf+P 0E5MH/xma9Cb3lFKEAH0j7VqZiwyD65o8NBCJPphC+BUF6piD2EWdcguQPLHimkG1Cks Kg/IneIgASQ85UFmoff4nR6H66jexzjeoZKhbMNTK3mX8CEqk1N8WiClBCJwRFOKqsPN Hc4zT0wpmAqOZt2aqssaq0IJrpposGsmpZQRYbaSWLu2yEHK/DIOdll871EjAoTmrzmY 1WUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=fh59IwpE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr8si12369952ejb.304.2020.11.16.10.36.34; Mon, 16 Nov 2020 10:36:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=fh59IwpE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387714AbgKPSc6 (ORCPT + 99 others); Mon, 16 Nov 2020 13:32:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732537AbgKPScx (ORCPT ); Mon, 16 Nov 2020 13:32:53 -0500 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CD49C0613CF for ; Mon, 16 Nov 2020 10:32:53 -0800 (PST) Received: by mail-il1-x12e.google.com with SMTP id l12so16197601ilo.1 for ; Mon, 16 Nov 2020 10:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=R9lE9d9/CKJRF5PYT88VMKA1TfCL9raVeHb+lUFo8Cc=; b=fh59IwpEIR+cJ87j4+XJilIeVzjsOf0N8vckF1J+4V9K1IpQscf47H9lkA+wvSdy71 22e6No7xYC8F/kGXd+U4rL46FQbOQqfYNNPdPX5nh01oo9+7gZor3GFP/AEiNvifMpSi sAgdYNWxPg0RZtcFZUJQywwXZBsAPKWlCK37A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=R9lE9d9/CKJRF5PYT88VMKA1TfCL9raVeHb+lUFo8Cc=; b=TKgXsVmC5Auvew2uujY9KLUiNbpstH3i8fFEPeaIZ+ywRCSbnXhfLcNr1PNWV7t5/J l9F2RgpcxZGMrWUZg2mcJQcjGxrI+1M6KYDDIhL9H4iPA2pB+5Paq+5Tx/TcmcQwksfJ yndI7uj3TEJuzVvXqTQxWNtf5HcSNdcSeDPqGpPqzexpIOYLaJPXHpfoYgwY2uFE9fPx 9XUtoUMA8bPDU60VpVPTDEty5EL49/uzwlBzi3pKkGYGKnzRpx3cD6ikBvzkScrSm+sj KYY1cpKvLnkKcGfmWCC8xjZW3VAWsZk10RWpFTX4C7raFxbEFpP/34hdYWeWDbk++hrY 7x3Q== X-Gm-Message-State: AOAM532AeexkHFgvYY5IUTbnA4J1eKhoN5yY+ZmKQajUk8U2WyYWpX+N w015T7EnYr0vt63+q1qtGDLKbRbUbsTbYg== X-Received: by 2002:a92:a041:: with SMTP id b1mr1214714ilm.242.1605551572485; Mon, 16 Nov 2020 10:32:52 -0800 (PST) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id y6sm8150669iob.48.2020.11.16.10.32.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Nov 2020 10:32:51 -0800 (PST) Subject: Re: checking for "config" file existence. To: Jeffrin Jose T , Shuah Khan Cc: lkml , "open list:KERNEL SELFTEST FRAMEWORK" References: <2ea637f38be0d03d0e0c545a6d12f36217cededc.camel@rajagiritech.edu.in> From: Shuah Khan Message-ID: Date: Mon, 16 Nov 2020 11:32:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.2 MIME-Version: 1.0 In-Reply-To: <2ea637f38be0d03d0e0c545a6d12f36217cededc.camel@rajagiritech.edu.in> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/12/20 10:40 AM, Jeffrin Jose T wrote: > hello, > > i wrote a small program to check for the existence of "config" files > for testing projects under kselftest framework. > > chmod 755 test_config.py > This file should be located in "tools/testing/selftests" > This can be run as "./test_config.py" > Why do we need a dedicated script when you can do it with: cd tools/testing/selftests; find . -name config I see that your script also prints if config doesn't exist. It is not a failure not have config as config is necessary only when a test has config option dependencies. What does this script attempting to solve? thanks, -- Shuah