Skip to content

Commit eb8c8be

Browse files
committed
Merge branch 'ps-build' into ps-2.4-stable
2 parents 8f6e37d + c85d435 commit eb8c8be

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ps-build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ echo "BUILD_NUMBER: $BUILD_NUMBER"
2929
echo "PREFIX: $PREFIX"
3030

3131
git fetch origin --prune --tags || failure "git fetch"
32-
BUILD_ID=$(git describe --abbrev=15 --always --long --tags | sed "s/^.\+-\([0-9]\+-g[0-9a-f]\+\)\$/.${BUILD_NUMBER}-\1/")
32+
BUILD_ID=$(git describe --abbrev=15 --always --long --tags | sed -e "s/^.\+-\([0-9]\+-g[0-9a-f]\+\)\$/.${BUILD_NUMBER}-\1/" -e "s/^\([0-9a-f]\+\)\$/.${BUILD_NUMBER}-g\1/")$(git show --abbrev=15 --format=-t%t | head -n 1)
3333
echo "BUILD_ID: $BUILD_ID"
3434

3535
step_finish "prepare"

ps/ps-ci-test.sh

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ function find_free_port {
1919
local h=$((l+n-1))
2020
if [ $h -gt 65535 ]; then continue; fi
2121
if [ $h -ge $begin -a $h -lt $end ]; then continue; fi
22+
# LY: skip default ports to avoid conflicts with local 'make test'
23+
if [ $l -ge 9010 -a $h -lt 9017 ]; then continue; fi
2224
local r=$l
2325
for p in $(seq $l $h); do
2426
if netstat -ant | sed -e '/^tcp/ !d' -e 's/^[^ ]* *[^ ]* *[^ ]* *.*[\.:]\([0-9]*\) .*$/\1/' | grep -q -w $p; then

0 commit comments

Comments
 (0)