Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp3965663pjo; Tue, 3 Mar 2020 10:12:45 -0800 (PST) X-Google-Smtp-Source: ADFU+vsHhCYVYWq3HZ3xjcb8A3sFuYroasWxF+j5pNF6IMjczu18/rJBbp1O0iyGe+6TYkY0Il1t X-Received: by 2002:a05:6830:1e58:: with SMTP id e24mr4440678otj.267.1583259164713; Tue, 03 Mar 2020 10:12:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583259164; cv=none; d=google.com; s=arc-20160816; b=jFfQoL1022Afm78/TsyqqCsPusa9LV7DKuZWu5ezAF1kYXmF6lLcVe+jRZB1+bpQgK EQlwpmTaxnpX/q2S+PP2eksHK9N+Uut5k5duEp/0oeu1spa6wpVvJrlHKHr76EbnGEex xXWko7tfq7iZDtJommv6Cka8wP3uv1zr3lDGKt88T5Ssy/qrLWjR5A00cKyGr7pg/SdP 31Q0a1r0joboj1FqudKgZsqH9bWNGfUlLouciAxfvARbtf2nh0G2lRXxWE7Wjvz8rYy/ xdANWWuICdYySOn5CWGgzBg7B837QkVD4shO5G9nRK7KCT+bF486r+mP/UdsTXPAhj9A /oLg== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wxuqt+pm/fDKJEoKaq8pbMZTDciYrjKBwcW/qvm94iw=; b=Gwf8ftqq3YKhBRy52ZlPp0lAWue8RL52b/7oMRmnyPNSXqyJAMjiHC98TPQm1V5KIC 7ZAFJxJM1ORCXPXVh+tzK0eNGEKTV0pkLDkp8Vr+/6VOUxcJltfurpN2yrhNPA9wG/Tp onFFKfNtWZg4uUZZkLD1qcL3rhSx3AvqZGQlmuEkBSyFEr4uxI5p6gRFHfgFd+ybZEu6 7Yj+ly+DrMnbiJ22G7EFvIlYIbdJK7v+HLlQJOgxF/qcrqxukVuezlmHHOoMkC5exI+R 3vmsaN3IBqrXXNrfLP+tGoQKKJP8Tc0ycaXWrWAxRId0IS1tkjvwBrP4ltaZfoF7zzT6 qukQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PleMDdzS; 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 z6si2265128oto.204.2020.03.03.10.12.32; Tue, 03 Mar 2020 10:12:44 -0800 (PST) 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=@kernel.org header.s=default header.b=PleMDdzS; 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 S1731886AbgCCRuW (ORCPT + 99 others); Tue, 3 Mar 2020 12:50:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:57938 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731118AbgCCRuS (ORCPT ); Tue, 3 Mar 2020 12:50:18 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1490420CC7; Tue, 3 Mar 2020 17:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583257817; bh=E3YVgtsw6Ht4SRsv2+bJ31Iqon7r6QazEhUVanUXS3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PleMDdzS/8ySrfKkqnOecbIg7+StsyVUTCdCH+ITCprnSZffyT05+XoNOqVpbgWuw nW1g3IxL+jvn6Fri7+dRhJZ1ceg34ioyuCL2hA7oAOweZDWGZ4oBM36XLd49k6ajRb BmQAd3yHj/kvpdqP+wNh9Dy52P/dkClrxHL/AvMU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman , Shuah Khan Subject: [PATCH 5.5 133/176] selftests: Install settings files to fix TIMEOUT failures Date: Tue, 3 Mar 2020 18:43:17 +0100 Message-Id: <20200303174320.136453781@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200303174304.593872177@linuxfoundation.org> References: <20200303174304.593872177@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Ellerman commit b9167c8078c3527de6da241c8a1a75a9224ed90a upstream. Commit 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test") added a 45 second timeout for tests, and also added a way for tests to customise the timeout via a settings file. For example the ftrace tests take multiple minutes to run, so they were given longer in commit b43e78f65b1d ("tracing/selftests: Turn off timeout setting"). This works when the tests are run from the source tree. However if the tests are installed with "make -C tools/testing/selftests install", the settings files are not copied into the install directory. When the tests are then run from the install directory the longer timeouts are not applied and the tests timeout incorrectly. So add the settings files to TEST_FILES of the appropriate Makefiles to cause the settings files to be installed using the existing install logic. Fixes: 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test") Signed-off-by: Michael Ellerman Signed-off-by: Shuah Khan Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/ftrace/Makefile | 2 +- tools/testing/selftests/livepatch/Makefile | 2 ++ tools/testing/selftests/rseq/Makefile | 2 ++ tools/testing/selftests/rtc/Makefile | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) --- a/tools/testing/selftests/ftrace/Makefile +++ b/tools/testing/selftests/ftrace/Makefile @@ -2,7 +2,7 @@ all: TEST_PROGS := ftracetest -TEST_FILES := test.d +TEST_FILES := test.d settings EXTRA_CLEAN := $(OUTPUT)/logs/* include ../lib.mk --- a/tools/testing/selftests/livepatch/Makefile +++ b/tools/testing/selftests/livepatch/Makefile @@ -8,4 +8,6 @@ TEST_PROGS := \ test-state.sh \ test-ftrace.sh +TEST_FILES := settings + include ../lib.mk --- a/tools/testing/selftests/rseq/Makefile +++ b/tools/testing/selftests/rseq/Makefile @@ -19,6 +19,8 @@ TEST_GEN_PROGS_EXTENDED = librseq.so TEST_PROGS = run_param_test.sh +TEST_FILES := settings + include ../lib.mk $(OUTPUT)/librseq.so: rseq.c rseq.h rseq-*.h --- a/tools/testing/selftests/rtc/Makefile +++ b/tools/testing/selftests/rtc/Makefile @@ -6,4 +6,6 @@ TEST_GEN_PROGS = rtctest TEST_GEN_PROGS_EXTENDED = setdate +TEST_FILES := settings + include ../lib.mk