Change-Id: Ie3a5970e915230314fc2ed4ce081a514b98e1cf0
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
./create_proj fake.spec
-gbs -c base.cfg build -R http://test:123456@10.113.136.109/repo-protected/tizen/releases/2.2/latest --skip-conf-repos --clean -A i586 2>&1| tee log
+gbs -c base.cfg build -R http://test:123456@localhost:8881/repo-protected/tizen/releases/2.2/latest --skip-conf-repos --clean -A i586 2>&1| tee log
(! grep "init_buildsystem.*123456" log)
#Get local host IP
hostIP=`grep "LOCAL_HOST_IP" /home/build/tools-tester.d/servers-local.conf | cut -d":" -f 2`
sed -i "s/http:\/\/localhost:8881/http:\/\/$hostIP:8881/g" `grep "http:\/\/localhost:8881" -rl /srv/itest/cases/gbs/`
+sed -i "s/http:\/\/test:123456@localhost:8881/http:\/\/test:123456@$hostIP:8881/g" `grep "http:\/\/test:123456@localhost:8881" -rl /srv/itest/cases/gbs/`
then
hostIP=`grep "LOCAL_HOST_IP" /home/build/tools-tester.d/servers-local.conf | cut -d":" -f 2`
sed -i "s/http:\/\/localhost:8881/http:\/\/$hostIP:8881/g" `grep "http:\/\/localhost:8881" -rl /srv/itest/cases/gbs/`
+ sed -i "s/http:\/\/test:123456@localhost:8881/http:\/\/test:123456@$hostIP:8881/g" `grep "http:\/\/test:123456@localhost:8881" -rl /srv/itest/cases/gbs/`
fi
%files