From e8d13fbd61d1cce4ca4b02daee3a44db491fca52 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 26 Aug 2013 10:36:49 +0200 Subject: [PATCH] [tinderbox] use --pre and --post with matter --- tinderbox/matter-build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tinderbox/matter-build.sh b/tinderbox/matter-build.sh index ec1e7738..3b027fb1 100755 --- a/tinderbox/matter-build.sh +++ b/tinderbox/matter-build.sh @@ -57,9 +57,11 @@ echo "Acquiring locks at ${LOCK_FILE} and ${LVM_LOCK_FILE} in blocking mode, wai echo "Starting matter-scheduler at $(date)..." export ETP_NO_COLOR="1" + pre_post="--pre /particles/hooks/pre.sh --post /particles/hooks/post.sh" # Place standard outout and standard error together to make # tee happy. Filter out stdout because it gets to mail - PARTICLES_DIR="/particles/${schedule}" MATTER_ARGS="--commit --blocking --gentle --disable-preserved-libs ${@}" "${PRE_CHROOT}" \ + PARTICLES_DIR="/particles/${schedule}" \ + MATTER_ARGS="--commit --blocking --gentle --disable-preserved-libs ${pre_post} ${@}" "${PRE_CHROOT}" \ /build/tinderbox/matter-scheduler "${CHROOT_DIR}" 2>&1 3>&1 | tee "${LOG_FILE}" > /dev/null rc=${?} echo "Completed matter-scheduler at $(date) with exit status: ${rc}"