Skip to content

Commit 23fece7

Browse files
Fix directory table ci pipeline problems. (#414)
Keep test env clean to make sure test pass.
1 parent 20add92 commit 23fece7

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

src/test/isolation2/input/local_directory_table_mixed.source

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
-- setup for temp tablespace
33
! rm -rf '@testtablespace@';
44
! mkdir -p '@testtablespace@';
5+
DROP TABLESPACE IF EXISTS directory_tblspc;
56
CREATE TABLESPACE directory_tblspc LOCATION '@testtablespace@';
67

78
CREATE EXTENSION IF NOT EXISTS gp_inject_fault;

src/test/isolation2/output/local_directory_table_mixed.source

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
! mkdir -p '@testtablespace@';
66

7+
DROP TABLESPACE IF EXISTS directory_tblspc;
8+
DROP
79
CREATE TABLESPACE directory_tblspc LOCATION '@testtablespace@';
810
CREATE
911

src/test/regress/input/directory_table.source

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,4 +644,6 @@ DROP TRIGGER IF EXISTS trigtest_a_row_tg_dirtable_1 ON dir_table1;
644644
DROP TRIGGER IF EXISTS trigtest_b_stmt_tg_dirtable_1 ON dir_table1;
645645
DROP TRIGGER IF EXISTS trigtest_a_stmt_tg_dirtable_1 ON dir_table1;
646646

647-
DROP TABLESPACE directory_tblspc;
647+
\!rm -rf @testtablespace@;
648+
649+
DROP TABLESPACE directory_tblspc;

src/test/regress/output/directory_table.source

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,4 +1844,5 @@ DROP TRIGGER IF EXISTS trigtest_b_stmt_tg_dirtable_1 ON dir_table1;
18441844
NOTICE: relation "dir_table1" does not exist, skipping
18451845
DROP TRIGGER IF EXISTS trigtest_a_stmt_tg_dirtable_1 ON dir_table1;
18461846
NOTICE: relation "dir_table1" does not exist, skipping
1847+
\!rm -rf @testtablespace@;
18471848
DROP TABLESPACE directory_tblspc;

src/test/regress/output/directory_table_optimizer.source

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,4 +1839,5 @@ DROP TRIGGER IF EXISTS trigtest_b_stmt_tg_dirtable_1 ON dir_table1;
18391839
NOTICE: relation "dir_table1" does not exist, skipping
18401840
DROP TRIGGER IF EXISTS trigtest_a_stmt_tg_dirtable_1 ON dir_table1;
18411841
NOTICE: relation "dir_table1" does not exist, skipping
1842+
\!rm -rf @testtablespace@;
18421843
DROP TABLESPACE directory_tblspc;

0 commit comments

Comments
 (0)