Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
Merge branch 'ps-build' into ps-2.4-stable
Browse files Browse the repository at this point in the history
  • Loading branch information
erthink committed Jun 11, 2015
2 parents 8f6e37d + c85d435 commit eb8c8be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ps-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ echo "BUILD_NUMBER: $BUILD_NUMBER"
echo "PREFIX: $PREFIX"

git fetch origin --prune --tags || failure "git fetch"
BUILD_ID=$(git describe --abbrev=15 --always --long --tags | sed "s/^.\+-\([0-9]\+-g[0-9a-f]\+\)\$/.${BUILD_NUMBER}-\1/")
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)
echo "BUILD_ID: $BUILD_ID"

step_finish "prepare"
Expand Down
2 changes: 2 additions & 0 deletions ps/ps-ci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function find_free_port {
local h=$((l+n-1))
if [ $h -gt 65535 ]; then continue; fi
if [ $h -ge $begin -a $h -lt $end ]; then continue; fi
# LY: skip default ports to avoid conflicts with local 'make test'
if [ $l -ge 9010 -a $h -lt 9017 ]; then continue; fi
local r=$l
for p in $(seq $l $h); do
if netstat -ant | sed -e '/^tcp/ !d' -e 's/^[^ ]* *[^ ]* *[^ ]* *.*[\.:]\([0-9]*\) .*$/\1/' | grep -q -w $p; then
Expand Down

0 comments on commit eb8c8be

Please sign in to comment.