resgroup: concourse: pass error code on ICR errors.
The installcheck-resgroup (ICR) error code was replaced with the diff
watcher's error code. Now pass it to the shell correctly.
@@ -65,14 +65,29 @@ run_resgroup_test() {
--disable-gpcloud --disable-gpfdist --disable-orca \
--disable-pxf ${CONFIGURE_FLAGS}
+ sleep 1800
+
make -C /home/gpadmin/gpdb_src/src/test/regress
ssh sdw1 mkdir -p /home/gpadmin/gpdb_src/src/test/regress
ssh sdw1 mkdir -p /home/gpadmin/gpdb_src/src/test/isolation2
scp /home/gpadmin/gpdb_src/src/test/regress/regress.so \
gpadmin@sdw1:/home/gpadmin/gpdb_src/src/test/regress/
- trap "find src/test/isolation2 -name regression.diffs | xargs cat" ERR
- make installcheck-resgroup
+ make installcheck-resgroup || (
+ errcode=\$?
+ find src/test/isolation2 -name regression.diffs \
+ | while read diff; do
+ cat <<EOF1
+
+======================================================================
+DIFF FILE: \$diff
+----------------------------------------------------------------------
+
+EOF1
+ cat \$diff
+ done
+ exit \$errcode
+ )
EOF
}
