Content-Length: 286412 | pFad | http://github.com/postgrespro/postgres_cluster/commit/f347f26807862522309a2b15e332518df3e5e6f0

1B pgtest: allow passing parameters, e.g. -s/--silent · postgrespro/postgres_cluster@f347f26 · GitHub
Skip to content

Commit f347f26

Browse files
committed
pgtest: allow passing parameters, e.g. -s/--silent
Previously only -n was recognized.
1 parent 3ced883 commit f347f26

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/tools/pgtest

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# src/tools/pgtest
3+
# src/tools/pgtest [-n] [...]
44

55
# This runs a build/initdb/regression test suite
66
#
@@ -18,11 +18,14 @@ trap "rm -rf /tmp/$$" 0 1 2 3 15
1818
mkdir /tmp/$$
1919
TMP="/tmp/$$"
2020

21-
[ "X$1" != "X-n" ] && PGCLEAN=clean
21+
if [ "X$1" != "X-n" ]
22+
then PGCLEAN=clean
23+
else shift
24+
fi
2225

2326
# Run "make check" and store return code in $TMP/ret.
2427
# Display output but also capture it in $TMP/0.
25-
($MAKE $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | tee $TMP/0
28+
($MAKE "$@" $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | tee $TMP/0
2629

2730
# If success, display warnings
2831
if [ $(cat $TMP/ret) -eq 0 ]

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_cluster/commit/f347f26807862522309a2b15e332518df3e5e6f0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy