This is an automated email from the ASF dual-hosted git repository.

avamingli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 1eeb8ef6d958feca68f87a9de97ac4ae31eeb2c5
Author: Adam Lee <[email protected]>
AuthorDate: Thu Dec 15 10:15:03 2022 +0800

    Remove the generated 'stdin' and 'stdout' files
    
    `\!rm` to test if they are located in the right directory.
---
 src/test/regress/.gitignore           | 9 ++-------
 src/test/regress/input/gpcopy.source  | 2 ++
 src/test/regress/output/gpcopy.source | 2 ++
 src/test/regress/stdin                | 2 ++
 src/test/regress/stdout               | 4 ++++
 5 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/test/regress/.gitignore b/src/test/regress/.gitignore
index 52c4386413..427c0a901f 100644
--- a/src/test/regress/.gitignore
+++ b/src/test/regress/.gitignore
@@ -9,13 +9,13 @@
 # Configure-generated files
 /GPTest.pm
 
-
 # ignore test tablespaces
 /testtablespace_default_tablespace/
 /testtablespace_temp_tablespace/
 
 twophase_pqexecparams
 
+data/part_ext.tbl
 data/wet_csv?.tbl
 data/wet_text?.tbl
 data/wet_syntax?.tbl
@@ -25,12 +25,7 @@ data/gpsd-without-hll.sql
 data/gpsd-with-hll.sql
 data/minirepro.sql
 
-regression.diffs
-regression.out
-
-stdin
-stdout
-# Note: regression.* are only left behind on a failure; that's why they're not 
ignored
+# Note: regreesion.* are only left behind on a failure; that's why they're not 
ignored
 #/regression.diffs
 #/regression.out
 
diff --git a/src/test/regress/input/gpcopy.source 
b/src/test/regress/input/gpcopy.source
index 12f0baa34c..c06f9ef113 100644
--- a/src/test/regress/input/gpcopy.source
+++ b/src/test/regress/input/gpcopy.source
@@ -703,6 +703,8 @@ COPY segment_reject_limit_from to STDOUT log errors segment 
reject limit 3 rows;
 \copy segment_reject_limit_from from 'stdin';
 \copy segment_reject_limit_from to 'stdout';
 \copy segment_reject_limit_from from 'stdout';
+\!rm stdin
+\!rm stdout
 
 -- gp_initial_bad_row_limit guc test. This guc allows user to set the initial
 -- number of rows which can contain errors before the database stops loading
diff --git a/src/test/regress/output/gpcopy.source 
b/src/test/regress/output/gpcopy.source
index b1ef7e5af6..0870ce7c41 100755
--- a/src/test/regress/output/gpcopy.source
+++ b/src/test/regress/output/gpcopy.source
@@ -748,6 +748,8 @@ ERROR:  COPY single row error handling only available using 
COPY FROM
 \copy segment_reject_limit_from from 'stdin';
 \copy segment_reject_limit_from to 'stdout';
 \copy segment_reject_limit_from from 'stdout';
+\!rm stdin
+\!rm stdout
 -- gp_initial_bad_row_limit guc test. This guc allows user to set the initial
 -- number of rows which can contain errors before the database stops loading
 -- the data. If there is a valid row within the first 'n' rows specified by
diff --git a/src/test/regress/stdin b/src/test/regress/stdin
new file mode 100644
index 0000000000..14df008570
--- /dev/null
+++ b/src/test/regress/stdin
@@ -0,0 +1,2 @@
+1      1
+1      2
diff --git a/src/test/regress/stdout b/src/test/regress/stdout
new file mode 100644
index 0000000000..d03c99dafd
--- /dev/null
+++ b/src/test/regress/stdout
@@ -0,0 +1,4 @@
+1      1
+1      2
+1      1
+1      2


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to