Skip to content

Commit

Permalink
Fix directory table ci pipeline problems. (apache#414)
Browse files Browse the repository at this point in the history
Keep test env clean to make sure test pass.
  • Loading branch information
wenchaozhang-123 authored and zhangwenchao committed Apr 28, 2024
1 parent 0c1bf1c commit a1741ad
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
-- setup for temp tablespace
! rm -rf '@testtablespace@';
! mkdir -p '@testtablespace@';
DROP TABLESPACE IF EXISTS directory_tblspc;
CREATE TABLESPACE directory_tblspc LOCATION '@testtablespace@';

CREATE EXTENSION IF NOT EXISTS gp_inject_fault;
Expand Down
2 changes: 2 additions & 0 deletions src/test/isolation2/output/local_directory_table_mixed.source
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

! mkdir -p '@testtablespace@';

DROP TABLESPACE IF EXISTS directory_tblspc;
DROP
CREATE TABLESPACE directory_tblspc LOCATION '@testtablespace@';
CREATE

Expand Down
4 changes: 3 additions & 1 deletion src/test/regress/input/directory_table.source
Original file line number Diff line number Diff line change
Expand Up @@ -644,4 +644,6 @@ DROP TRIGGER IF EXISTS trigtest_a_row_tg_dirtable_1 ON dir_table1;
DROP TRIGGER IF EXISTS trigtest_b_stmt_tg_dirtable_1 ON dir_table1;
DROP TRIGGER IF EXISTS trigtest_a_stmt_tg_dirtable_1 ON dir_table1;

DROP TABLESPACE directory_tblspc;
\!rm -rf @testtablespace@;

DROP TABLESPACE directory_tblspc;
1 change: 1 addition & 0 deletions src/test/regress/output/directory_table.source
Original file line number Diff line number Diff line change
Expand Up @@ -1844,4 +1844,5 @@ DROP TRIGGER IF EXISTS trigtest_b_stmt_tg_dirtable_1 ON dir_table1;
NOTICE: relation "dir_table1" does not exist, skipping
DROP TRIGGER IF EXISTS trigtest_a_stmt_tg_dirtable_1 ON dir_table1;
NOTICE: relation "dir_table1" does not exist, skipping
\!rm -rf @testtablespace@;
DROP TABLESPACE directory_tblspc;
1 change: 1 addition & 0 deletions src/test/regress/output/directory_table_optimizer.source
Original file line number Diff line number Diff line change
Expand Up @@ -1839,4 +1839,5 @@ DROP TRIGGER IF EXISTS trigtest_b_stmt_tg_dirtable_1 ON dir_table1;
NOTICE: relation "dir_table1" does not exist, skipping
DROP TRIGGER IF EXISTS trigtest_a_stmt_tg_dirtable_1 ON dir_table1;
NOTICE: relation "dir_table1" does not exist, skipping
\!rm -rf @testtablespace@;
DROP TABLESPACE directory_tblspc;

0 comments on commit a1741ad

Please # to comment.