| ... | ... |
@@ -17,14 +17,14 @@ Start an etcd server for testing. |
| 17 | 17 |
|
| 18 | 18 |
.PP |
| 19 | 19 |
This command starts an etcd server based on the config for testing. It is not |
| 20 |
-Intended for production use. Running |
|
| 20 |
+intended for production use. Running |
|
| 21 | 21 |
|
| 22 | 22 |
.PP |
| 23 | 23 |
openshift start etcd |
| 24 | 24 |
|
| 25 | 25 |
.PP |
| 26 |
-will start the server listening for incoming requests. The server |
|
| 27 |
-will run in the foreground until you terminate the process. |
|
| 26 |
+will start the server listening for incoming requests. The server will run in |
|
| 27 |
+the foreground until you terminate the process. |
|
| 28 | 28 |
|
| 29 | 29 |
|
| 30 | 30 |
.SH OPTIONS |
| ... | ... |
@@ -695,8 +695,8 @@ function os::build::os_version_vars() {
|
| 695 | 695 |
readonly -f os::build::os_version_vars |
| 696 | 696 |
|
| 697 | 697 |
function os::build::etcd_version_vars() {
|
| 698 |
- ETCD_GIT_COMMIT=$(go run "${OS_ROOT}/tools/godepversion/godepversion.go" "${OS_ROOT}/Godeps/Godeps.json" "github.com/coreos/etcd/client" "comment")
|
|
| 699 |
- ETCD_GIT_VERSION=$(echo "${ETCD_GIT_COMMIT}" | sed -E "s/\-.*/\+git/g" | sed -E "s/v//")
|
|
| 698 |
+ ETCD_GIT_VERSION=$(go run "${OS_ROOT}/tools/godepversion/godepversion.go" "${OS_ROOT}/Godeps/Godeps.json" "github.com/coreos/etcd/etcdserver" "comment")
|
|
| 699 |
+ ETCD_GIT_COMMIT=$(go run "${OS_ROOT}/tools/godepversion/godepversion.go" "${OS_ROOT}/Godeps/Godeps.json" "github.com/coreos/etcd/etcdserver")
|
|
| 700 | 700 |
} |
| 701 | 701 |
readonly -f os::build::etcd_version_vars |
| 702 | 702 |
|
| ... | ... |
@@ -23,10 +23,6 @@ fi |
| 23 | 23 |
|
| 24 | 24 |
# setup a private GOPATH so the build can succeed |
| 25 | 25 |
export GOPATH="${PWD}/gopath"
|
| 26 |
-rm -f "${GOPATH}/src/github.com/coreos/etcd"
|
|
| 27 |
-mkdir -p "${GOPATH}/src/github.com/coreos"
|
|
| 28 |
-ln -s "${PWD}" "${GOPATH}/src/github.com/coreos/etcd"
|
|
| 29 |
- |
|
| 30 | 26 |
./build |
| 31 | 27 |
|
| 32 | 28 |
echo |
| ... | ... |
@@ -26,7 +26,8 @@ os::test::junit::declare_suite_start "cmd/basicresources/versionreporting" |
| 26 | 26 |
os::build::get_version_vars |
| 27 | 27 |
os_git_regex="$( escape_regex "${OS_GIT_VERSION%%-*}" )"
|
| 28 | 28 |
kube_git_regex="$( escape_regex "${KUBE_GIT_VERSION%%-*}" )"
|
| 29 |
-etcd_git_regex="$( escape_regex "${ETCD_GIT_VERSION%%-*}" )"
|
|
| 29 |
+etcd_version="$(echo "${ETCD_GIT_VERSION}" | sed -E "s/\-.*//g" | sed -E "s/v//")"
|
|
| 30 |
+etcd_git_regex="$( escape_regex "${etcd_version%%-*}" )"
|
|
| 30 | 31 |
os::cmd::expect_success_and_text 'oc version' "oc ${os_git_regex}"
|
| 31 | 32 |
os::cmd::expect_success_and_text 'oc version' "kubernetes ${kube_git_regex}"
|
| 32 | 33 |
os::cmd::expect_success_and_text 'oc version' "features: Basic-Auth" |