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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy