Reduce the disk usage; we can always reproduce with the commit ID
# Run the command, outout to typescript
script -c "schroot -r -c $mysid ~/build/strace/inside-schroot-test.sh"
-if [ -f ${BDIR}/RESULT ] ; then
- schroot -e -c $mysid
- rm -rf ${BDIR}
- rm -f ~/build/strace/inside-schroot-test.sh
-else
+if [ ! -f ${BDIR}/RESULT ] ; then
echo "BUILD FAILED - not doing cleanup"
echo "Results in ${BDIR}"
fi
+schroot -e -c $mysid
+rm -rf ${BDIR}
+rm -f ~/build/strace/inside-schroot-test.sh
mv typescript typescript-$ARCH-$HOSTNAME-${DATETIME}.txt
gzip -9 typescript-$ARCH-$HOSTNAME-${DATETIME}.txt