git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 5/5] perf: aggregate: check if subtest exists

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Mar 12, 2023, 20:08 UTC
Message-ID
<20230312200856.323688-6-felipe.contreras@gmail.com>
In-Reply-To
<20230312200856.323688-1-felipe.contreras@gmail.com>

If no tests were run, for example in p7822-grep-perl-character.sh, that's not a fatal error, just skip to the next one.

Cc: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 t/perf/aggregate.perl | 1 +
 1 file changed, 1 insertion(+)
diff --git a/t/perf/aggregate.perl b/t/perf/aggregate.perl
index 575d2000cc..a79451a0af 100755
--- a/t/perf/aggregate.perl
+++ b/t/perf/aggregate.perl
@@ -156,6 +156,7 @@ sub sane_backticks {
 	$t =~ s{(?:.*/)?(p(\d+)-[^/]+)\.sh$}{$1} or die "bad test name: $t";
 	my $n = $2;
 	my $fname = "$resultsdir/$t.subtests";
+	next unless (-e $fname);
 	open my $fp, "<", $fname or die "cannot open $fname: $!";
 	for (<$fp>) {
 		chomp;
-- 
2.39.2.13.g1fb56cf030
Previous: Felipe ContrerasNext: Felipe Contreras
Message 5 of 6 in “perf: fixes and cleanups”
  1. 0/5 perf: fixes and cleanupsFelipe Contreras, Mar 12, 2023
  2. 1/5 perf: sparse: remove grep --sparse optionFelipe Contreras, Mar 12, 2023
  3. 2/5 perf: grep: fix prereqsFelipe Contreras, Mar 12, 2023
  4. 3/5 perf: grep: don't check PRCE twiceFelipe Contreras, Mar 12, 2023
  5. 5/5 perf: aggregate: check if subtest existsFelipe Contreras, Mar 12, 2023
  6. 4/5 perf: grep: avoid unused prereqFelipe Contreras, Mar 12, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.