Received: by 10.192.165.148 with SMTP id m20csp5328864imm; Wed, 9 May 2018 03:17:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZowV1ZC9/fIlPqNateS66YuK/RlNPB2EfrFAWX5+HeOT8BZpyOMAbf20AMDxNR0OnMWOGwK X-Received: by 2002:a65:5d51:: with SMTP id e17-v6mr35336547pgt.100.1525861077829; Wed, 09 May 2018 03:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525861077; cv=none; d=google.com; s=arc-20160816; b=skY3YfRs6s9t/awtU1ThClPbwHcHex9lwYfKDsLDy+FTM1RXZl5yqdcpKkyV92UjyD JaRlXshgKeyvK5/c1JlKZLGjDrsTvsrbYsbSPY5u+Kv2YFw50ksckBBHfi5yTgxsdPYS 44/eAigbfmuBzNB1gRq9EaL6KZlBXl20M9pyNxA8PDzIjzKSkOSTIumbp1JhNA0Il42T oT2ClrZT3rY2Lal/4wckvSRn+gey3WpEcZGhLoCeUDjUH36ZJDi55ZhzQnvU+N7vqzK2 jmB7Jpi/0MEf4wR6xyr/KN/HAdlm2Orim66rlz4yt4sD42lSQj2sNGF5Q10huP/8iYIt EXgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=HOBpmK2xNkrkkU7B/tP75g/0EdmHTRJUx5qEXoKQ6ps=; b=RBY5MtXbnucPCMooNfi7PJ4i8myEULGRz/ZvcXDMLwWFayd2vn2B29JROk+u0zZOWj hdkGI5Ebu83RM83ePkIxIkI2qWJzhvsEBgtmj3e9V5YHWkixR/hczAyBFrLK0LZjF1gJ Zgr91gPt17ulyed0OHxnerm2axaFTt8lhNKv5sbmQOQqJ18atubFKzDIw3bZghLBM5hJ oxN1/CVdQ6ZIATzEW/LpL1/xwCk23px0E+lPsSIRJEVfqp+zn+2I66ZBRLRQD8YYhPcl Q9uphH/sM69A3Hy/cyJwme5HRgVsOGTQCKKIlSV5cftDyGnfonwPAaMokAVwkMGYsaQQ fzzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y5XB/N14; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1-v6si14694212pga.543.2018.05.09.03.17.43; Wed, 09 May 2018 03:17:57 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Y5XB/N14; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934272AbeEIKRE (ORCPT + 99 others); Wed, 9 May 2018 06:17:04 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:46784 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934126AbeEIKRB (ORCPT ); Wed, 9 May 2018 06:17:01 -0400 Received: by mail-lf0-f67.google.com with SMTP id x7-v6so15152015lff.13 for ; Wed, 09 May 2018 03:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HOBpmK2xNkrkkU7B/tP75g/0EdmHTRJUx5qEXoKQ6ps=; b=Y5XB/N14j1U8uHTMk//SW29+ZV/TaGn9fJ59ZyFc56SRMkGLGF8Oupe8urDPv2/keo XN+XHDbEu4/29lU7qxi7kOarbDBnPb8sCRTb9PqlOa5R/XBVni96tnW49+jmoF6dFSh9 xbzrdqj5s/gJbiR3mxrF1vcmsHFjUVTVHMXsY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HOBpmK2xNkrkkU7B/tP75g/0EdmHTRJUx5qEXoKQ6ps=; b=CMyQh2A7fYC9zTUI/9xiKxSkJWdTRj06tFJHalnpNWgCj/W99JGboLjqbpcja+c27m 9gzg+ZxCTsYmsb2+v8elA9V8E1FYnw7B7vcHgDziicEFCzrihoRsiP4g5ntOYJzmU/HE V1l6z+Shzobamj154o0C8B8U0A1N29/cs6b+xYhjdVx+Ki6nfFh1analZEF/HvbjYAfh fOMX0g/NJJW5xrtbmQKTvfrrOpDZwolhjeFHPvfQwypxnfQWPNKJFSyQGAtNpo1nBO9i ILzWju5E8jg9nmiTq3dfh3uZjF2g7kN++jxac6aKZ7X5XMOW5OdoOaV0mDRIS/TeDFOS AaEg== X-Gm-Message-State: ALKqPwf7mueLdMtlzH3zyNJdVswV6cQbDrHXcXpSREKXNiKt4uQP3fum eouqoaqPHObCioiyMaFUejHeYA== X-Received: by 2002:a19:8ec2:: with SMTP id a63-v6mr3087982lfl.122.1525861019710; Wed, 09 May 2018 03:16:59 -0700 (PDT) Received: from localhost.localdomain (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id g74-v6sm2045163lfl.22.2018.05.09.03.16.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 May 2018 03:16:59 -0700 (PDT) Date: Wed, 9 May 2018 11:46:52 +0200 From: Anders Roxell To: "Shuah Khan (Samsung OSG)" Cc: lei.yang@windriver.com, po-hsu.lin@canonical.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] selftests: memory-hotplug: delete RUN_TESTS and EMIT_TESTS overrides Message-ID: <20180509094652.GB10043@localhost.localdomain> References: <20180502211848.22404-1-shuah@kernel.org> <20180502211848.22404-3-shuah@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180502211848.22404-3-shuah@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-05-02 15: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: Anders Roxell > --- > 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 > -- > 2.14.1 >