Skip to content

Commit 625744a

Browse files
committed
Use terse mode to avoid variable order dependency output in foreign data regression check.
Per Tom Lane's suggestion about my gripe about occasional errors noticed on the buildfarm.
1 parent 860be17 commit 625744a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/test/regress/expected/foreign_data.out

+4-5
Original file line numberDiff line numberDiff line change
@@ -1086,13 +1086,12 @@ DROP SERVER t1 CASCADE;
10861086
NOTICE: drop cascades to user mapping for public
10871087
DROP SERVER t2;
10881088
DROP USER MAPPING FOR regress_test_role SERVER s6;
1089+
-- This test causes some order dependent cascade detail output,
1090+
-- so switch to terse mode for it.
1091+
\set VERBOSITY terse
10891092
DROP FOREIGN DATA WRAPPER foo CASCADE;
10901093
NOTICE: drop cascades to 5 other objects
1091-
DETAIL: drop cascades to server s4
1092-
drop cascades to user mapping for foreign_data_user
1093-
drop cascades to server s6
1094-
drop cascades to server s9
1095-
drop cascades to user mapping for unprivileged_role
1094+
\set VERBOSITY default
10961095
DROP SERVER s8 CASCADE;
10971096
NOTICE: drop cascades to 2 other objects
10981097
DETAIL: drop cascades to user mapping for foreign_data_user

src/test/regress/sql/foreign_data.sql

+4
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,11 @@ DROP SERVER s5 CASCADE;
443443
DROP SERVER t1 CASCADE;
444444
DROP SERVER t2;
445445
DROP USER MAPPING FOR regress_test_role SERVER s6;
446+
-- This test causes some order dependent cascade detail output,
447+
-- so switch to terse mode for it.
448+
\set VERBOSITY terse
446449
DROP FOREIGN DATA WRAPPER foo CASCADE;
450+
\set VERBOSITY default
447451
DROP SERVER s8 CASCADE;
448452
DROP ROLE regress_test_indirect;
449453
DROP ROLE regress_test_role;

0 commit comments

Comments
 (0)