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

Commit38bff3e

Browse files
author
Gauvain Pocentek
committed
Prepare for v4 API testing
1 parentac3aef6 commit38bff3e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎tools/build_test_env.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ fatal() { error "$@"; exit 1; }
2626
try() {"$@"|| fatal"'$@' failed"; }
2727

2828
PY_VER=2
29-
whilegetopts :p: opt"$@";do
29+
API_VER=3
30+
whilegetopts :p:a: opt"$@";do
3031
case$optin
3132
p) PY_VER=$OPTARG;;
33+
a) API_VER=$OPTARG;;
3234
:) fatal"Option -${OPTARG} requires a value";;
3335
'?') fatal"Unknown option: -${OPTARG}";;
3436
*) fatal"Internal error: opt=${opt}";;
@@ -41,6 +43,11 @@ case $PY_VER in
4143
*) fatal"Wrong python version (2 or 3)";;
4244
esac
4345

46+
case$API_VERin
47+
3|4) ;;
48+
*) fatal"Wrong API version (3 or 4)";;
49+
esac
50+
4451
forreqin \
4552
curl \
4653
docker \
@@ -130,6 +137,7 @@ timeout = 10
130137
[local]
131138
url = http://localhost:8080
132139
private_token =$TOKEN
140+
api_version =$API_VER
133141
EOF
134142

135143
log"Config file content ($CONFIG):"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp