Skip to content
Snippets Groups Projects
Commit ab86402e authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

WIP: allow to report the exit code of the background job.

parent 4402d443
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# This is wrapper to run the build.sh on CI
buildpid=
logfile=mylog.txt
if [ "$LCG_RELEASE" = "KEY4HEP_STACK" ]; then
......@@ -16,7 +17,14 @@ fi
while ps -p $buildpid 2>/dev/null ; do
sleep 60
done
done &
echoer=$!
trap 'kill $echoer' 0
wait $buildpid
statuspid=$?
tail -n100 ${logfile}
exit $statuspid
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment