Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
d524a11a
Commit
d524a11a
authored
6 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
pgtest: run clean, build, and check stages separately
This allows for cleaner error reporting. Backpatch-through: 9.5
parent
9a13e7f0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tools/pgtest
+13
-3
13 additions, 3 deletions
src/tools/pgtest
with
13 additions
and
3 deletions
src/tools/pgtest
+
13
−
3
View file @
d524a11a
...
@@ -19,15 +19,25 @@ mkdir /tmp/$$
...
@@ -19,15 +19,25 @@ mkdir /tmp/$$
TMP
=
"/tmp/
$$
"
TMP
=
"/tmp/
$$
"
if
[
"X
$1
"
!=
"X-n"
]
if
[
"X
$1
"
!=
"X-n"
]
then
PGCLEAN
=
clean
then
CLEAN
=
"Y"
else
shift
else
CLEAN
=
""
shift
fi
fi
rm
-f
tmp_install/log/install.log
rm
-f
tmp_install/log/install.log
# Run "make check" and store return code in $TMP/ret.
# Run "make check" and store return code in $TMP/ret.
# Display output but also capture it in $TMP/0.
# Display output but also capture it in $TMP/0.
(
$MAKE
"
$@
"
$PGCLEAN
check 2>&1
;
echo
"
$?
"
>
$TMP
/ret
)
|
tee
$TMP
/0
(
if
[
"
$CLEAN
"
]
then
$MAKE
"
$@
"
clean 2>&1
echo
"
$?
"
>
$TMP
/ret
fi
if
[
$(
cat
$TMP
/ret
)
-eq
0
]
then
$MAKE
"
$@
"
2>&1
&&
$MAKE
"
$@
"
check 2>&1
echo
"
$?
"
>
$TMP
/ret
fi
)
|
tee
$TMP
/0
# Grab possible warnings from install.log
# Grab possible warnings from install.log
[
-e
tmp_install/log/install.log
]
&&
cat
tmp_install/log/install.log
>>
$TMP
/0
[
-e
tmp_install/log/install.log
]
&&
cat
tmp_install/log/install.log
>>
$TMP
/0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment