before: deploy compass-ci client and server in one machine. after: not only deploy compass-ci client and server in one machine, but also on different servers.
[why] for user locally deploy compass-ci, sometimes need to deploy client in other machine, so add $1.
it's interrelated with the follow patch: [PATCH lkp-tests] setup/simplify-ci: delete default value
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sparrow/3-code/dev-env | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/sparrow/3-code/dev-env b/sparrow/3-code/dev-env index 2ba9662..00a2e0f 100755 --- a/sparrow/3-code/dev-env +++ b/sparrow/3-code/dev-env @@ -4,6 +4,9 @@
server_name=$(hostname | cut -f1 -d.) server_ip=$(ip route get 1.2.3.4 | awk '{print $7; exit}') + +[ -n "$1" ] && server_ip=$1 + : ${sched_host:=$server_ip} : ${sched_port:=3000} : ${os_http_host:=$server_ip}