Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit03131ab

Browse files
committed
pgtest: run clean, build, and check stages separately
This allows for cleaner error reporting.Backpatch-through: 9.5
1 parenta326ca7 commit03131ab

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

‎src/tools/pgtest

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,25 @@ mkdir /tmp/$$
1919
TMP="/tmp/$$"
2020

2121
if ["X$1"!="X-n" ]
22-
thenPGCLEAN=clean
23-
elseshift
22+
thenCLEAN="Y"
23+
elseCLEAN=""
24+
shift
2425
fi
2526

2627
rm -f tmp_install/log/install.log
2728

2829
# Run "make check" and store return code in $TMP/ret.
2930
# Display output but also capture it in $TMP/0.
30-
($MAKE"$@"$PGCLEAN check2>&1;echo"$?">$TMP/ret)| tee$TMP/0
31+
(
32+
if ["$CLEAN" ]
33+
then$MAKE"$@" clean2>&1
34+
echo"$?">$TMP/ret
35+
fi
36+
if [$(cat$TMP/ret)-eq 0 ]
37+
then$MAKE"$@"2>&1&&$MAKE"$@" check2>&1
38+
echo"$?">$TMP/ret
39+
fi
40+
)| tee$TMP/0
3141

3242
# Grab possible warnings from install.log
3343
[-e tmp_install/log/install.log ]&& cat tmp_install/log/install.log>>$TMP/0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp