X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fapp_test%2Frebuild.ksh;h=3e06c2c356cd6e1b4cab54bb2f970d8278505849;hb=a9435336c9df83676ae5b0e34a38a2f9b9dec589;hp=04367ef713bbc1ba96fc70da04c6c00fc45cd0c2;hpb=15390d7fea1b82b9cb8037ea7fd3a9cf3b00230b;p=ric-plt%2Flib%2Frmr.git diff --git a/test/app_test/rebuild.ksh b/test/app_test/rebuild.ksh index 04367ef..3e06c2c 100644 --- a/test/app_test/rebuild.ksh +++ b/test/app_test/rebuild.ksh @@ -30,6 +30,7 @@ build_path=../../.build +echo "$(date) build starts" >&2 ( set -e mkdir -p $build_path @@ -37,10 +38,12 @@ build_path=../../.build cd ${build_path##*/} cmake .. make package -) +) >/tmp/PID$$.log if (( $? != 0 )) then - echo "build failed" + cat /tmp/PID$$>log + echo "$(date) build failed" >&2 exit 1 fi +echo "$(date) build completed" >&2