From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0B2F3C73EA for ; Mon, 27 Apr 2026 16:55:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777308952; cv=none; b=Mu6p108hrbVFho5GD53f5jj6gujWvkZO91iSt7dR4ca6dJnlu2aMV/hn6Wy2pCjbkcNlQVtA83uH+25yBvz8uOtD/zCeUu/nEacbQD4UWl0CkOcBVp/t1lnNUuoFzHuTbLHLGvMWdf6Nsai469mlfyMIoEgH0qcKesFjpzn94Kg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777308952; c=relaxed/simple; bh=G0h3jq1rfnZpLl0BeMsGwmDawoRbgxSeMa5ajthCX/Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=EeFj+OM9UxgCHFH/oDh0PGCPglDatWFP780oYdR9CK1lTypQtgqdv115eMncbUmLNXDkmWmMWwRc0asy9Y7fB21P7kmUX72H3rb8OiXnnKXgsCc6WN1JiAOu3aJ6uDIF1CQt95VGMBa9MBC/6AX+if04dvNQqY69a5k8S78IoVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=GTqse7kd; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="GTqse7kd" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1777308948; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eeIymKMmn5VMvSmJ/53HZ9lwroqGaVAwlhaCdG4C+3A=; b=GTqse7kdhBNbY59iyBm4LkrDz6CtQSiX2TMtcjQvQLvs04M1FZtzTQbDGbrtIMQwh7+UMW Y4//Usah2Ru59miUhhipbBmtMGszORw//wF3YajKu5m0JXU3RkhXWwaA7SRPQrNXJzKqfG 6gldvs69Px3euqURCsID8X+6ZRPgXKE= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-180-bwAIK5f0OlaZpmP6kncx8w-1; Mon, 27 Apr 2026 12:55:47 -0400 X-MC-Unique: bwAIK5f0OlaZpmP6kncx8w-1 X-Mimecast-MFC-AGG-ID: bwAIK5f0OlaZpmP6kncx8w_1777308947 Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-8ebe2c596c6so1517166585a.1 for ; Mon, 27 Apr 2026 09:55:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777308947; x=1777913747; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eeIymKMmn5VMvSmJ/53HZ9lwroqGaVAwlhaCdG4C+3A=; b=dChwo6OtecV2kZR4F5SY75FXaTNcZU+SVtOwOSFvRQnJew66YYcje784X9A/P7ICQv s154ulIKIbcxOQN01m+Hs1DuPU8bvfakW1eiNIH7YGuC1Cjxc/0PgKxwBhA6VYk2h35C foOSsWD76tmQmwtYbtANAGKmvOXhAWRDUOQH+6YRJTU8dk9uIZdmfVIz+F7WiPD4gUKL 51j/3uztDMqojUCHcTUTD+9jkA18wbY5Q43MMwmdoSp2Pupw1g02CSxlKEfyr6FhfsKr C6KE1GdCPhcdzZGT5MyTsJEwDs9e6rfVFP1dKfi88duF3jmEawjNTtKzGrQSLu86LYlG PZaQ== X-Forwarded-Encrypted: i=1; AFNElJ8q0uwq/UvWyGas5zMA7qYo0J0v+gt22RYdrPF/b1z27FdQsfEUBjwORZa43fOym545hSYEzU1+j7YONCU=@vger.kernel.org X-Gm-Message-State: AOJu0YzDa7ebfNC0mT+ROS67DYyg5D1u/EhXqeA8a5C+i2asyc86AY6Z QCgwDMFfok+pcHf25AiAoAm749bJBSRjfZth3J4AMcoeUYRmdyrySg/pa4TITelq8DfUMrhjSB9 qE+oGj4RHX5T6PoQ8rTaBdetnLw92DdkeqFGBiubS8yvn31aYIUWyWogWuzhmnZkYMw== X-Gm-Gg: AeBDietxQjKh112HqstosP1aFxz73L044mQ8vum5EAMbrdmZKTZr5+GYe8+2CDOrH9E Zly96wvmiQrAoakwVb77L0CjlmHLWig4ho1nOpoiOf6p7Dy553bkYdFCn82PKp/yTm0arj5kNrn pg7IZflNieSq0b2heFAJ5bB5KoYcE5QRdrIcXl/Gd4CUWp77LrbwJtjxrJVKdUYmgeeXEH5wY+R 7MO/5/CtziOSGVY81Yh9kPwuqFlaNw/srHCtm2W8EBq/97QBliYPBC7EOGjbQVJjLbkJp5m4mU6 IOjsLTGmY+PT8/MYicXkyP8PEXde8MurCIV0+AEcFV+Ry1qbGJuGihJ1/6yYA0u0uuT0Y+N6ZLD sBInHUo84PtunAiAr2Q3JO4ouFmT6iBtrgQJ2 X-Received: by 2002:a05:620a:4115:b0:8ee:630e:350a with SMTP id af79cd13be357-8ee630e46c3mr3942341585a.58.1777308946707; Mon, 27 Apr 2026 09:55:46 -0700 (PDT) X-Received: by 2002:a05:620a:4115:b0:8ee:630e:350a with SMTP id af79cd13be357-8ee630e46c3mr3942337985a.58.1777308946266; Mon, 27 Apr 2026 09:55:46 -0700 (PDT) Received: from [192.168.2.110] ([69.159.169.238]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8b02ac429ffsm266093656d6.2.2026.04.27.09.55.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Apr 2026 09:55:45 -0700 (PDT) Message-ID: <6e105a9f-e335-469d-92a0-9bd0aa806706@redhat.com> Date: Mon, 27 Apr 2026 12:55:34 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] selftests/mm: run_vmtests.sh: fix destructive tests invocation To: Mike Rapoport , Andrew Morton Cc: Linux Memory Management List , "David Hildenbrand (Red Hat)" , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Suren Baghdasaryan , Michal Hocko , Shuah Khan , linux-kselftest@vger.kernel.org, LKML , Muhammad Usama Anjum References: <214fd9e4-5398-4c26-859e-c982c2e277c3@redhat.com> <20260427091250.61316471db20dfb0852141c1@linux-foundation.org> Content-Language: en-US, en-CA From: Luiz Capitulino In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2026-04-27 12:49, Mike Rapoport wrote: > On Mon, Apr 27, 2026 at 09:12:50AM -0700, Andrew Morton wrote: >> On Mon, 27 Apr 2026 12:03:51 -0400 Luiz Capitulino wrote: >> >>> Destructive tests should be invocated with -d command-line option, but >>> this won't work today since 'd' is missing in getopts command-line. This >>> commit fixes it. >>> >>> Signed-off-by: Luiz Capitulino > > Reviewed-by: Mike Rapoport (Microsoft) > >>> --- >>> Mike, >>> >>> Maybe it's a good idea to add this patch to your series since the >>> hugetlb-read-hwpoison selftest won't work without your fix. >> >> Or I can scoot it into mainline as a hotfix and Mike will pick it up >> via Linus, soon? > > I'm fine with this. Then it works for me too. > >> It'd be good to have a Fixes:. It looks like a3c5cc5129ef5 or >> 2bc4813622459? > > It's rather f16ff3b692ad ;-) > It added RUN_DESTRUCTIVE and a case for 'd' option, but missed it in > getops. Exactly, I just found out the same thing and came here to report it but you beat me to it :) Andrew, do you need a v2 or can you edit the patch description for me? > >>> tools/testing/selftests/mm/run_vmtests.sh | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh >>> index d8468451b3a3..c17b133a81d2 100755 >>> --- a/tools/testing/selftests/mm/run_vmtests.sh >>> +++ b/tools/testing/selftests/mm/run_vmtests.sh >>> @@ -103,7 +103,7 @@ RUN_ALL=false >>> RUN_DESTRUCTIVE=false >>> TAP_PREFIX="# " >>> >>> -while getopts "aht:n" OPT; do >>> +while getopts "aht:nd" OPT; do >>> case ${OPT} in >>> "a") RUN_ALL=true ;; >>> "h") usage ;; >>> -- >>> 2.53.0 >