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

Commit3b54027

Browse files
committed
CI scripts: document run_install_check and make make_test_base report error corretly
1 parenta57b79b commit3b54027

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

‎.ci/make_test_base

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ On success, starts database
99
"""
1010
importos,sys,subprocess,glob,re,os.path,time
1111

12-
datadir=sys.argv[1]
13-
14-
ifnotdatadir:
15-
print>>sys.stderr,"Usage %s directory"%sys.argv[0]
12+
iflen(sys.argv)!=2:
13+
print>>sys.stderr,"Usage %s data-directory"%sys.argv[0]
1614
sys.exit(1)
1715

16+
datadir=sys.argv[1]
17+
1818
ifos.access(datadir,os.R_OK):
1919
importshutil
2020
shutil.rmtree(datadir)

‎.ci/run_install_check

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
# Makes temporary installation and runs installcheck-world on it
33
# Should be run as non-privileged user.
44
# Exit on all errors
5+
# If run without arguments, makes installcheck-world
6+
# Otherwise first argument is interpreted as subdirectory
7+
# to change before runnning make installchedk
8+
# i.e
9+
# run_install_check .
10+
# test core only
11+
# run_install_check contrib
12+
# tests contrib only
13+
# etc.
14+
# All other arguments are passed to Makefile intact
15+
# To make possible pass arguments to installcheck-world
16+
# run_install_check world
17+
# does the same as no args
518
set -e
619
# Install
720
make install prefix=`pwd`/tmp_install
@@ -19,7 +32,7 @@ export PGPORT
1932
./.ci/make_test_base$PGDATA
2033
#run checks
2134
set +e
22-
if [-z"$1" ];then
35+
if [-z"$1"-o"$1"="world"];then
2336
make installcheck-world prefix=`pwd`/tmp_install NO_LOCALE=1
2437
else
2538
dir=$1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp