Skip to content

Commit eeb28a2

Browse files
committed
pg_bsd_indent: Collect test diffs in test.diffs instead of tests.diff
That way CI knows to pick up the file if the test fails. Discussion: https://postgr.es/m/20230711233307.hu4wetabjm5f7ver@awork3.anarazel.de Backpatch: 16-, where the test was added
1 parent 93dcdfa commit eeb28a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tools/pg_bsd_indent/t/001_pg_bsd_indent.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# Run pg_bsd_indent on pre-fab test cases.
2626
# Any diffs in the generated files will be accumulated here.
27-
my $diff_file = "tests.diff";
27+
my $diffs_file = "test.diffs";
2828

2929
# Copy support files to current dir, so *.pro files don't need to know path.
3030
while (my $file = glob("$src_dir/tests/*.list"))
@@ -44,9 +44,9 @@
4444
"$test.out", "-P$src_dir/tests/$test.pro"
4545
],
4646
"pg_bsd_indent succeeds on $test");
47-
# check result matches, adding any diff to $diff_file
47+
# check result matches, adding any diff to $diffs_file
4848
my $result = run_log([ 'diff', '-upd', "$test_src.stdout", "$test.out" ],
49-
'>>', $diff_file);
49+
'>>', $diffs_file);
5050
ok($result, "pg_bsd_indent output matches for $test");
5151
}
5252

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy