Signed-off-by: Yu Chuan 13186087857@163.com --- sparrow/4-docker/buildall | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/sparrow/4-docker/buildall b/sparrow/4-docker/buildall index a9269e03a550..8a3a23af3e4e 100755 --- a/sparrow/4-docker/buildall +++ b/sparrow/4-docker/buildall @@ -5,6 +5,8 @@ CONTAINER_PATH="$CCI_SRC/container" export action=$1
+[ -n "$LKP_SRC" ] && source "${LKP_SRC}/lib/log.sh" + build_depends() { local container=$1 @@ -23,6 +25,7 @@ do_one() local container=$1 local container_name=$(basename $container) lockfile-create -q --use-pid --retry 100 --lock-name "$container_name".lock + [ -n "$LKP_SRC" ] && log_info "start build $container" mkdir $tmpdir/$container_name 2>/dev/null && ( cd $container @@ -33,6 +36,7 @@ do_one() [ -x first-run ] && ./first-run [ -x start ] && ./start ) + [ -n "$LKP_SRC" ] && log_info "finish build $container." lockfile-remove --lock-name "$container_name".lock }
On Tue, Dec 15, 2020 at 06:50:43PM +0800, Yu Chuan wrote:
Signed-off-by: Yu Chuan 13186087857@163.com
sparrow/4-docker/buildall | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/sparrow/4-docker/buildall b/sparrow/4-docker/buildall index a9269e03a550..8a3a23af3e4e 100755 --- a/sparrow/4-docker/buildall +++ b/sparrow/4-docker/buildall @@ -5,6 +5,8 @@ CONTAINER_PATH="$CCI_SRC/container" export action=$1
+[ -n "$LKP_SRC" ] && source "${LKP_SRC}/lib/log.sh"
build_depends() { local container=$1 @@ -23,6 +25,7 @@ do_one() local container=$1 local container_name=$(basename $container) lockfile-create -q --use-pid --retry 100 --lock-name "$container_name".lock
- [ -n "$LKP_SRC" ] && log_info "start build $container" mkdir $tmpdir/$container_name 2>/dev/null && ( cd $container
@@ -33,6 +36,7 @@ do_one() [ -x first-run ] && ./first-run [ -x start ] && ./start )
- [ -n "$LKP_SRC" ] && log_info "finish build $container."
keep same format for output logs. Thanks, Liushaofei
lockfile-remove --lock-name "$container_name".lock }
-- 2.23.0
lockfile-create -q --use-pid --retry 100 --lock-name "$container_name".lock
- [ -n "$LKP_SRC" ] && log_info "start build $container" mkdir $tmpdir/$container_name 2>/dev/null && ( cd $container
@@ -33,6 +36,7 @@ do_one() [ -x first-run ] && ./first-run [ -x start ] && ./start )
- [ -n "$LKP_SRC" ] && log_info "finish build $container."
keep same format for output logs.
What a good point !
-------- Thanks Yu Chuan
Thanks, Liushaofei
lockfile-remove --lock-name "$container_name".lock }
-- 2.23.0
CONTAINER_PATH="$CCI_SRC/container" export action=$1
+[ -n "$LKP_SRC" ] && source "${LKP_SRC}/lib/log.sh"
build_depends() { local container=$1 @@ -23,6 +25,7 @@ do_one() local container=$1 local container_name=$(basename $container) lockfile-create -q --use-pid --retry 100 --lock-name "$container_name".lock
- [ -n "$LKP_SRC" ] && log_info "start build $container"
if want get run time, why not define log_time() { end time - start time } because there are too much containers. Thanks, Yinsi
mkdir $tmpdir/$container_name 2>/dev/null && ( cd $container @@ -33,6 +36,7 @@ do_one() [ -x first-run ] && ./first-run [ -x start ] && ./start )
- [ -n "$LKP_SRC" ] && log_info "finish build $container." lockfile-remove --lock-name "$container_name".lock
}
-- 2.23.0