Received: by 10.192.165.148 with SMTP id m20csp5404111imm; Wed, 9 May 2018 04:38:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpsTVihvAd9o+NyZ9UO1PmN5yhb4vUyiuwVRMkslN8hqbThYUsp2zc62SF1EEGV96xapzDl X-Received: by 2002:a63:6441:: with SMTP id y62-v6mr36320054pgb.362.1525865926614; Wed, 09 May 2018 04:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525865926; cv=none; d=google.com; s=arc-20160816; b=kmlucgHCXTpbtAszuiNpSRy/hAtw3kly68fI9CVStHvtMxY1sMyFnd5nghWHILgPqj MLpm2XkbGGjy8gHNjTK8tJ1suw8MZ9icSsj0jGRBWI4q+OcxEJr+Q5tfiPGxtu5zTQ8X sIzrDTrGUXXEQ/6wnHfkvwFQpR2Mzc4mVs+RXdYXqTZpMVvUDG6ugprEDkPeJj+jgd3r PGLcaPB+aBeu8dJXSa9rfAdg9uMbJmrbq9Y0Cy8DMzE0RrstvwCuK7IaMlKfcY+UG486 OYetuh1iUJHIKP+zS9IENu77w3dny2JZH6/hjIFqhtbezeD/YAXerE15o9RePwJK+POK x5aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=M9vWCO58Ss40IIm81Z33YdwoVqaUJiy8eeBFTuY75ro=; b=hYs02VHSlgV6KqrW5WWdVEdCaK/EEfk/nBjloV00LaOjQW0jxVD9F3zNBL67sFFLxN ztWxRF/tJZteeMBaVgJ56DW4pRxaizlvjA0gLtIAIZKu4d3KMWNY88DtbO8WFU346ax0 m4qDuP7lSb2fNvkn9jIEHqj5GvGc6zh+W4R439E/my+RBxcO3Zn5M7TsDiU1oXdwAaD2 3lSrXEapOr8VqhS6ljDRjib5rdR1iCXbN1uKAbwJXUBTi+1yDu1SMA4a9IqDgSq+0EjV FMiK6g1ep4lk5a53/68BW/Iu6Cuwh0rCQBI1J64FwU5niuUTDfLaGNnfWS4GuZbnmpAk 9Qxw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21-v6si2715801pgn.672.2018.05.09.04.38.31; Wed, 09 May 2018 04:38:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934339AbeEILhI (ORCPT + 99 others); Wed, 9 May 2018 07:37:08 -0400 Received: from mail5.windriver.com ([192.103.53.11]:48692 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933832AbeEILhH (ORCPT ); Wed, 9 May 2018 07:37:07 -0400 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id w49Ba7Uv020519 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 9 May 2018 04:36:23 -0700 Received: from [128.224.162.194] (128.224.162.194) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 9 May 2018 04:35:57 -0700 Subject: Re: [PATCH] selftests: memory-hotplug: delete RUN_TESTS and EMIT_TESTS overrides To: "Shuah Khan (Samsung OSG)" , References: <20180502211848.22404-1-shuah@kernel.org> <20180502211848.22404-3-shuah@kernel.org> CC: , From: lei yang Message-ID: <71d76124-fbe8-c475-3bb9-bec645db02a0@windriver.com> Date: Wed, 9 May 2018 19:39:47 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20180502211848.22404-3-shuah@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [128.224.162.194] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018年05月03日 05:18, Shuah Khan (Samsung OSG) wrote: > Delete RUN_TESTS and EMIT_TESTS overrides and use common defines in > lib.mk. Common defines work after making the change the test to run > with ratio=2 as the default mode to be able to invoke the test without > the "-r 2" argument from the common RUN_TESTS and EMIT_TESTS. > > The run_full_tests target now calls the test with "-r 10". > > Signed-off-by: Shuah Khan (Samsung OSG) Reviewed-by: Lei.Yang@windriver.com Lei > --- > tools/testing/selftests/memory-hotplug/Makefile | 5 +---- > tools/testing/selftests/memory-hotplug/mem-on-off-test.sh | 3 ++- > 2 files changed, 3 insertions(+), 5 deletions(-) > > diff --git a/tools/testing/selftests/memory-hotplug/Makefile b/tools/testing/selftests/memory-hotplug/Makefile > index 686da510f989..e0a625e34f40 100644 > --- a/tools/testing/selftests/memory-hotplug/Makefile > +++ b/tools/testing/selftests/memory-hotplug/Makefile > @@ -4,11 +4,8 @@ all: > include ../lib.mk > > TEST_PROGS := mem-on-off-test.sh > -override RUN_TESTS := @./mem-on-off-test.sh -r 2 && echo "selftests: memory-hotplug [PASS]" || echo "selftests: memory-hotplug [FAIL]" > - > -override EMIT_TESTS := echo "$(subst @,,$(RUN_TESTS))" > > run_full_test: > - @/bin/bash ./mem-on-off-test.sh && echo "memory-hotplug selftests: [PASS]" || echo "memory-hotplug selftests: [FAIL]" > + @/bin/bash ./mem-on-off-test.sh -r 10 && echo "memory-hotplug selftests: [PASS]" || echo "memory-hotplug selftests: [FAIL]" > > clean: > diff --git a/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh b/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh > index ae2c790d0880..ff4991704d07 100755 > --- a/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh > +++ b/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh > @@ -133,7 +133,8 @@ offline_memory_expect_fail() > > error=-12 > priority=0 > -ratio=10 > +# Run with default of ratio=2 for Kselftest run > +ratio=2 > retval=0 > > while getopts e:hp:r: opt; do