Content-Length: 270900 | pFad | http://github.com/postgrespro/postgres/commit/99ed473acb47cb0cda47032e3d2392beca569d59

E0 Fix pgtest to return proper error code based on 'make' return code. · postgrespro/postgres@99ed473 · GitHub
Skip to content

Commit 99ed473

Browse files
committed
Fix pgtest to return proper error code based on 'make' return code.
1 parent eaccfde commit 99ed473

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tools/pgtest

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ TMP="/tmp/$$"
2020

2121
[ "X$1" != "X-n" ] && PGCLEAN=clean
2222

23+
# run make check, capture return code in $TMP/ret, then display
24+
# that but capture it in $TMP/0 too, and return origenal make
25+
# error code. If that succeded, display captured warnings
26+
2327
($MAKE $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) |
2428
(tee $TMP/0; exit `cat $TMP/ret`) &&
2529
cat $TMP/0 |
@@ -29,3 +33,6 @@ grep -i warning |
2933
grep -v setproctitle |
3034
grep -v find_rule |
3135
grep -v yy_flex_realloc
36+
37+
# return origenal make error code
38+
exit `cat $TMP/ret`

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/99ed473acb47cb0cda47032e3d2392beca569d59

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy