From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) (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 D35063A3E7F for ; Mon, 20 Apr 2026 18:24:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776709480; cv=none; b=BnO7ThdnSJ5cIgSSrM/bYR861GFsGubZnm+3ORz9w1+O0c+YQmwMPqyWdoRU7+j0bG5iVliOpHpsJJCQ3uAy1p4inPQZ9+gMa+N4bZEFY0Xt7AS5cW6jlWZWMUDzwgrZ/FIQ+yHmWxZh6TYbuDmFjJ4m7fZFJjXurgd8CW4co1E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776709480; c=relaxed/simple; bh=lBHtQQbfYaZ4I3gTXD9PZNXt/qBcaFsQcDU0Q3QUPwQ=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=ndTafK1X+yZ4nhxfc9fHlnVpUO9C22mGUGg7xCU9SDJyvEZtj5vL5HbzpqM7ME9lc0wpkrnyzyvltadHdblZD7PQhA7GwmFVRnetdA7CWHhNYzeY7U20jOyIIJ5hZPwdPrb/22F+LxFuzEFgj1qq+R9S11NUMqALY+4jr9Oi5G4= 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.12 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 omf11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id BD7AD1A043C; Mon, 20 Apr 2026 18:24:32 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: rostedt@goodmis.org) by omf11.hostedemail.com (Postfix) with ESMTPA id 4A41920029; Mon, 20 Apr 2026 18:24:31 +0000 (UTC) Date: Mon, 20 Apr 2026 14:24:26 -0400 From: Steven Rostedt To: LKML , John 'Warthog9' Hawley Subject: [PATCH] ktest: Fix the month in the name of the failure directory Message-ID: <20260420142426.33ad0293@fedora> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.52; 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=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Server: rspamout05 X-Rspamd-Queue-Id: 4A41920029 X-Stat-Signature: 6y5i7mz4hm7qfzam7h7863b1sz94rphb X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Session-ID: U2FsdGVkX18PuD73hHDKIAL942SGodA6EDhuIHJ1Te8= X-HE-Tag: 1776709471-797210 X-HE-Meta: U2FsdGVkX1+PGg9y1F5kut5/MjpiAIp/xdYfX2sau+H1argl5NyLPCFzmhQVXWgNyBAh7Toj3q8rhvio824uv1W3iFaxY6483WLQoenH20Tb3FbF9BkFKtbmrxhNdmwYZKtjKvRrvjo9wHhiNDIsrIbc8tQXgSmiPfJwslY1T1sVcuGXtNp1Q+msO4VfToZbT/G25UtUvd6Zq7288egnVTherjiKZnH3D/kwFwVnxzkohqdmBr2aWLRNGmgtKOrdRhnPP2LJF183uV8IPJqOnYJhBhvZDTBVOnwiviGdwgLYlHP+57ep84+8MM/5uag8UF3PaJRxl6X9uiGTt9JWoRupn8rwhWcU+gEaDkG33R96Aem1xbGPvjb4bqXvtVCWfxHOlQFdvP/PVXr7aKkUhRXHOJ2XzmLa0tFJOSBWdlJZZrSTCxrsXA== From: Steven Rostedt The Perl localtime() function returns the month starting at 0 not 1. This caused the date produced to create the directory for saving files of a failed run to have the month off by one. machine-test-useconfig-fail-20260314073628 The above happened in April, not March. The correct name should have been: machine-test-useconfig-fail-20260414073628 This was somewhat confusing. Cc: stable@vger.kernel.org Fixes: 7faafbd69639b ("ktest: Add open and close console and start stop monitor") Signed-off-by: Steven Rostedt --- tools/testing/ktest/ktest.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index 112f9ca2444b..dd55eea15070 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -1855,7 +1855,7 @@ sub save_logs { my ($result, $basedir) = @_; my @t = localtime; my $date = sprintf "%04d%02d%02d%02d%02d%02d", - 1900+$t[5],$t[4],$t[3],$t[2],$t[1],$t[0]; + 1900+$t[5],$t[4]+1,$t[3],$t[2],$t[1],$t[0]; my $type = $build_type; if ($type =~ /useconfig/) { -- 2.51.0