this puts the changes of
f23343e and
e0af3d3 back. they still apply to the
cmake run.
this change partially reverts
934a7a3.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
#!/bin/bash -x
set -e -o pipefail
+SECONDS=0
+
+function print_runtime() {
+ printf "Total run time: %d:%02d\n" $((SECONDS / 60 )) $((SECONDS % 60))
+}
+
bindir=`dirname $0`
. $bindir/reset-modules.sh
install -d -m0755 -- "$OUTDIR_TMP"
printf '%s\n' "$REV" >"$OUTDIR_TMP/sha1"
+trap "pkill -9 'ceph-(osd|mon)' || true; print_runtime" EXIT
+
./run-make-check.sh | tee $OUTDIR_TMP/run-make-check.log
# we're successful, the files are ok to be published; try to be as