From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13803C6379D for ; Mon, 16 Nov 2020 18:33:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B836F20A8B for ; Mon, 16 Nov 2020 18:33:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fh59IwpE" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388490AbgKPSc6 (ORCPT ); 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-Google-Smtp-Source: ABdhPJxcuzifQRoMzSvdjcej2uBH2zLWjlvT4vQb3xMGKTuEWgLl54a63oenH9NZ/uFp73baJWMHMg== 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