Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2eaa54d

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.deBackpatch: 16-, where the test was added
1 parente68dd9e commit2eaa54d

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)

[8]ページ先頭

©2009-2025 Movatter.jp