From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) (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 34EA63C3BF3 for ; Tue, 14 Apr 2026 11:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776164807; cv=none; b=aMqSjNEU97YvjKFNCFSD6BihY0j5U0o9q3lkcbqjldc8P27C3owe2uPmwgj0fkKJhuaJxl5b3c6Hgafuqtn7U1dMS80RoOwrwHbgmt4dJqA5xSOUh2tn9iClZ+6AhS2U868J+8Nvd5qhREteqZwfrV7/51ZJ+CAdGg9FBXt+xmg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776164807; c=relaxed/simple; bh=QN6Ui7LKigiC/BzWkWJuqbNPqHGZUeGLtrj0HuqOFtQ=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=dZ37Qm9RZF0z5vjnqQYaiPVgAisWHiJlLPnh5IISroii6+tLz5i2wzKMD5xAvLsvRxl3fk0B+Nrs8m2mEgXAJybNUaaCiU4/c45YzUljVhLGlmYCtEGptxBzO9RxNfEv1xPytdoW4bY2WP9/srF03MV3EmRuodozHDSXbZmtJxg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=goodmis.org; spf=pass smtp.mailfrom=goodmis.org; arc=none smtp.client-ip=216.40.44.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=goodmis.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=goodmis.org Received: from omf08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id CFD8B14051A; Tue, 14 Apr 2026 11:06:44 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: rostedt@goodmis.org) by omf08.hostedemail.com (Postfix) with ESMTPA id E66C420025; Tue, 14 Apr 2026 11:06:42 +0000 (UTC) Date: Tue, 14 Apr 2026 07:06:40 -0400 From: Steven Rostedt To: Linus Torvalds Cc: LKML , John 'Warthog9' Hawley , "Ricardo B. =?UTF-8?B?TWFybGnDqHJl?=" Subject: [GIT PULL] ktest: Updates for 7.1 Message-ID: <20260414070640.39a30ed1@robin> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.51; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Stat-Signature: dqy49h65bbjb6a4fp4otcrhgn6k3ewh5 X-Rspamd-Server: rspamout02 X-Rspamd-Queue-Id: E66C420025 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Session-ID: U2FsdGVkX18/RPkZiRDYSHtvJVAp+FoOQP9v3s974zg= X-HE-Tag: 1776164802-295683 X-HE-Meta: U2FsdGVkX1+0AVn40HcCNPPMiOox3+RPL0OR1n49ScVaH9sTXK52kmxDyry331KPRIyjrssl8KcrPxlzekgLfxuaSWZxUn58SlGyBm0Yuh5Wj76hcv4wRCCVqcG3amiACHBLRnFIRVK5+S3ZarkXnUBRcElidajrPx+i6cSOSJgfVIuRIFK3VwSQ1MfrYIVPpgTsMHG3ugf617vsBK7fjDQKmOaLI8lPemyH7o+8RdKMYL/HGu/r+v5JnNRb8f0FHiLdm90m+32SwTk/qOU/iMLGpWREy5vDukz4o4xqtgp+ykXL5UKLncLeg3xN3dR6DKyZ+n3bic/eS9OR26Pmq6hFh6JIfYst Linus, ktest updates for v7.1: - Fix undef warning when WARNINGS_FILE is unset The check_buildlog() references WARNINGS_FILE even when it's not set. Perl triggers a warning in this case. Check if the WARNINGS_FILE is defined before checking if the file it represents exists. - Fix how LOG_FILE is resolved LOG_FILE is expanded immediately after the config file is parsed. If LOG_FILE depends on variables from the tests it will use stale values instead of using the test variables. Have LOG_FILE also resolve test variables. - Treat a undefined self reference variable as empty Variables can recursively include itself for appending. Currently, if the references itself and it is not defined, it leaves the variable in the define: "VAR =3D ${VAR} foo" keeps the ${VAR} around. Have it removed instead. - Fix clearing of variables per tests If a variable has a defined default, a test can not clear it by assigning the variable to empty. Fix this by clearing the variable for a test when the test config has that variable assigned to nothing. - Fix run_command() to catch stderr in the shell command parsing Switch to Perl list form open to use "sh -c" wrapper to run shell commands to have the log file catch shell parsing errors. - Fix console output during reboot cycle The POWER_CYCLE callback during reboot() can miss output from the next boot making ktest miss the boot string it was waiting for. - Add PRE_KTEST_DIE for PRE_KTEST failures If the command for PRE_KTEST fails, ktest does not fail (this was by design as this command was used to add patches that may or may not apply). Add PRE_KTEST_DIE value to force ktest to fail if PRE_KTEST fails. - Run POST_KTEST hooks on failure and cancellation PRE_KTEST always runs before a ktest test, have POST_KTEST always run after a test even if the test fails or is cancelled to do the teardown of PRE_KTEST. -- Add a --dry-run mode Add --dry-run to parse the config, print the results and exit without running any of the tests. -- Store failures from the dodie() path as well The STORE_FAILURES saves the logs on failure, but there's failure paths that miss storing. Perform STORE_FAILURES in dodie() to capture these failures too. Please pull the latest ktest-v7.1 tree, which can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest.git ktest-v7.1 Tag SHA1: 48960daaba200a9ab1db0dad11be71f900a60415 Head SHA1: 81fca7087466bd81fff7100d824b2c788edf7a97 Ricardo B. Marli=C3=A8re (10): ktest: Avoid undef warning when WARNINGS_FILE is unset ktest: Resolve LOG_FILE in test option context ktest: Treat undefined self-reference as empty ktest: Honor empty per-test option overrides ktest: Run commands through list-form shell open ktest: Stop dropping console output during power-cycle reboot ktest: Add PRE_KTEST_DIE for PRE_KTEST failures ktest: Run POST_KTEST hooks on failure and cancellation ktest: Add a --dry-run mode ktest: Store failure logs also in fatal paths ---- tools/testing/ktest/ktest.pl | 163 +++++++++++++++++++++++++++++-------= ---- tools/testing/ktest/sample.conf | 6 ++ 2 files changed, 127 insertions(+), 42 deletions(-) ---------------------------