Received: by 10.192.165.148 with SMTP id m20csp1109993imm; Wed, 2 May 2018 14:21:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZov0Lt/wP4J1uxg7wiIULzTTzfPg5/w3sv+7Hubrqfgu2tuHSaAbqasH/On2HyueO8B7Xzj X-Received: by 2002:a63:77c3:: with SMTP id s186-v6mr16664035pgc.296.1525296092953; Wed, 02 May 2018 14:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525296092; cv=none; d=google.com; s=arc-20160816; b=KjFplZOq7OlKLCHUb10pLmfilItHVHmLuAxm65vje5VMBe8+t94F7XxAYprGz3PAst Je1E6vx1JlIOLnI6H5BFnva8EPIOvq9JzJ+rFMCzgF/qXJdpPp+6i/0xm0DoxJBhKSJb D2l30CKlZaJEIdjPtxhjYqRsrNrzvfm0so7F6167cvs427DuLNkMJesHTgVSKy0fplMp zrCdmFZF8wu0RRPwbsmzMVSAvHU1blzyYOEfcfNVvus396tls2HsW6iJVK0XxhKrbEwL LUXZd2exC6/eZKXSemu2Ds8HVOfrLlYtaWn9i7Jsym7qBHvgH+VCeGBRuoe1W1x2Hsdv DR2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=tgv0LAFTq9Zna9+KkE4gjJ86eqD3YnQ+nOitqlC4QGs=; b=b2s/m99oZg+gfwHd+1Y+m3kpCEx/vIEtBYVDaAkzxrA3XjvcOpUy26Ba3/B85tS3RP 4gS5ZaKIemt4sQXWZYXW4m31nexSipx6a7sGJjq64r3F+7xZeIVvbrfN8EpaZPDk8cp7 AiJrS536lnIfBedSrS3CWB1HKUZBjBqQ0h7A+Y8+r3b+vO1EY62XmeQth6dy3w2q7PiK emwHxe7RUXN5SjP0XyVlsRz37lAIhuFqs09NZiO8/Ttcgd1anWBnYlZyf4dWnscekuYz US/MMYJ3+Skwi8qYzEw9MHDZMFQaU4wXXAkh6mWJ8COuoL/9cF7MJnfaV8xCTfwFbjy3 cCzw== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si12072391pfm.119.2018.05.02.14.21.19; Wed, 02 May 2018 14:21:32 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751916AbeEBVTj (ORCPT + 99 others); Wed, 2 May 2018 17:19:39 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:53265 "EHLO mailout.easymail.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751864AbeEBVTg (ORCPT ); Wed, 2 May 2018 17:19:36 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 5EC0041CC6; Wed, 2 May 2018 21:19:35 +0000 (UTC) Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo03-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gpFoUZlKNHjt; Wed, 2 May 2018 21:19:35 +0000 (UTC) Received: from localhost.localdomain (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 946A240E96; Wed, 2 May 2018 21:19:28 +0000 (UTC) From: "Shuah Khan (Samsung OSG)" To: shuah@kernel.org, lei.yang@windriver.com, po-hsu.lin@canonical.com Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests: memory-hotplug: delete RUN_TESTS and EMIT_TESTS overrides Date: Wed, 2 May 2018 15:18:46 -0600 Message-Id: <20180502211848.22404-3-shuah@kernel.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180502211848.22404-1-shuah@kernel.org> References: <20180502211848.22404-1-shuah@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) --- 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