Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6754762rwd; Tue, 6 Jun 2023 01:08:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ69WthHzI86bDtzeJcuKrQW/z+ZsDUEn35PFIlf3uhGxfgxoxw894QAFf3aj0KqDkQbV/e/ X-Received: by 2002:a05:6a00:88c:b0:657:bdf1:cce1 with SMTP id q12-20020a056a00088c00b00657bdf1cce1mr1890463pfj.25.1686038920397; Tue, 06 Jun 2023 01:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686038920; cv=none; d=google.com; s=arc-20160816; b=gdCswSKEV60vkKScVOPV3iieQidPzwF7uA2gNlkbO4zHcL6xYEWpUQ4TSglpbDDomk W9RaIqc1Bm2WDqhmo9uqtV0sB7GOvJc5R/Na0wEYnJ6mJjWJpUSFP4tdNHUH8YmERn3E uLrtHq0eSOqavmtInU4cjwKdPZB7hX6r9A5kZiG60AMQf4DoFRGthOQlflEBjFKeNJrc 6TekmtCYKrgx75cm/hkSV+bXsilYpnrtrMV7W6ULsI/As042ZIu0b7P+cVr+/z2kYnLY zdPGbqck7RmPxHfVhBJMPxAzXjnRXlbIXOJuIgggB+lIjsvagVYFGOA3IF3IXxSgfpnq Kp0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=uH+HQ2CTEU/aIYwFJ+HNzQMvBxLI5Q82oKQfjt+dVk8=; b=NPXljEM1EjJks5f5Ru8lNksjMJSCDmac2e1165/dz+cx9pcn/CwhzKJ5uyPutKyowe LbBxB26z3Il1BVTS/p6+nSfKoMx8mUyNBwDXMhHQ9XU5wN//2pb5e9gX5AuedqTH0H27 cpEgKpQDEzdqGk6svnEPU01PDUqMSJlARf1SUpJwMgZtExHf1u0bQ8Aq1ofbDp04LSoX JEh4s4OAaMPCqh5ESh6Y+eWuowJHmvW70phzfUMXAhbJimLMYpU/LE2DGzDl2FPMLHlk q1pxRuoklXP4pdFC5DZRxBPlqJyEymsFwt4J5GBhBfaU4engtCPVHlBQQFHG6S8q3ci1 vs1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QKazdlAQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j20-20020a637a54000000b00542b188b326si6224643pgn.876.2023.06.06.01.08.28; Tue, 06 Jun 2023 01:08:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=QKazdlAQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235503AbjFFHzu (ORCPT + 99 others); Tue, 6 Jun 2023 03:55:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235923AbjFFHyM (ORCPT ); Tue, 6 Jun 2023 03:54:12 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35C21172E; Tue, 6 Jun 2023 00:51:48 -0700 (PDT) Received: from [192.168.10.48] (unknown [119.152.150.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: usama.anjum) by madras.collabora.co.uk (Postfix) with ESMTPSA id 882CC6602242; Tue, 6 Jun 2023 08:51:44 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1686037907; bh=BqZOGQbEcyYCHcBE1RRO2kBEWXV2+B/RC+2FIhcFIDQ=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=QKazdlAQyr0a+xe5O6k37BRnj9CwvM7X9kmjf9BQS2S9G41BXy3z8dJskBw3QM1EM aUX6xep0bsF0M6UoNq1dYoWXbR+E9CP6cuE+13CimEJR7gL/7fqMlf16ZHhEMCiudZ 4sTfGyAmwwoUlPqGtf5WMZV02lLQZAVZS7qbRgZy+iN+c8CbTAiAD0d6Wg6er1acQi FzLtr+KEK4auuB0K22WOUDsAC3u6RDbxw2SOez0zHtAxI5Adwx3b+ud1tmcd3abz2l ywzSq46t1xjSuttD7Em0UiwnZGQhpwqTqWbWhffxy9j8/MTCNR8H5buaQQpysXhFW0 8aQ61uL++/krQ== Message-ID: <9464d0a6-adc2-9b7e-4771-4eb3805d02aa@collabora.com> Date: Tue, 6 Jun 2023 12:51:40 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cc: Muhammad Usama Anjum , David Hildenbrand , Peter Xu , Shuah Khan , Nathan Chancellor , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, LKML Subject: Re: [PATCH v3 04/11] selftests/mm: fix invocation of tests that are run via shell scripts Content-Language: en-US To: John Hubbard , Andrew Morton References: <20230606071637.267103-1-jhubbard@nvidia.com> <20230606071637.267103-5-jhubbard@nvidia.com> From: Muhammad Usama Anjum In-Reply-To: <20230606071637.267103-5-jhubbard@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/6/23 12:16 PM, John Hubbard wrote: > We cannot depend upon git to reliably retain the executable bit on shell > scripts, or so I was told several years ago while working on this same > run_vmtests.sh script. And sure enough, things such as test_hmm.sh are > lately failing to run, due to lacking execute permissions. > > Fix this by explicitly adding "bash" to each of the shell script > invocations. Leave fixing the overall approach to another day. > > Acked-by: David Hildenbrand > Cc: Peter Xu > Signed-off-by: John Hubbard Tested-by: Muhammad Usama Anjum > --- > tools/testing/selftests/mm/run_vmtests.sh | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh > index 4893eb60d96d..8f81432e4bac 100644 > --- a/tools/testing/selftests/mm/run_vmtests.sh > +++ b/tools/testing/selftests/mm/run_vmtests.sh > @@ -242,18 +242,18 @@ if [ $VADDR64 -ne 0 ]; then > if [ "$ARCH" == "$ARCH_ARM64" ]; then > echo 6 > /proc/sys/vm/nr_hugepages > fi > - CATEGORY="hugevm" run_test ./va_high_addr_switch.sh > + CATEGORY="hugevm" run_test bash ./va_high_addr_switch.sh > if [ "$ARCH" == "$ARCH_ARM64" ]; then > echo $prev_nr_hugepages > /proc/sys/vm/nr_hugepages > fi > fi # VADDR64 > > # vmalloc stability smoke test > -CATEGORY="vmalloc" run_test ./test_vmalloc.sh smoke > +CATEGORY="vmalloc" run_test bash ./test_vmalloc.sh smoke > > CATEGORY="mremap" run_test ./mremap_dontunmap > > -CATEGORY="hmm" run_test ./test_hmm.sh smoke > +CATEGORY="hmm" run_test bash ./test_hmm.sh smoke > > # MADV_POPULATE_READ and MADV_POPULATE_WRITE tests > CATEGORY="madv_populate" run_test ./madv_populate -- BR, Muhammad Usama Anjum