Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2eaa54d

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 e68dd9e commit 2eaa54d

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

+3-3
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)