From: Wei Liu Subject: [PATCH OSSTEST] mg-execute-flight: create tmp directory if it doesn't exist Date: Mon, 7 Dec 2015 14:09:10 +0000 Message-ID: <1449497350-11439-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a5wTX-0007RX-7M for xen-devel@lists.xenproject.org; Mon, 07 Dec 2015 14:09:11 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: ian.jackson@eu.citrix.com, Wei Liu , ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Signed-off-by: Wei Liu --- mg-execute-flight | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mg-execute-flight b/mg-execute-flight index 8b2c21c..dd64aef 100755 --- a/mg-execute-flight +++ b/mg-execute-flight @@ -66,6 +66,8 @@ export OSSTEST_RESOURCE_PREINFO="[adhoc $blessing]\ : ${OSSTEST_HTMLPUB_DIR:=`getconfig Logs`} +if [ ! -d tmp ]; then mkdir tmp; fi + (./sg-execute-flight $flight $blessing || echo "sg-execute-flight $flight $blessing failed: $?") \ >tmp/$flight.transcript 2>&1 -- 2.1.4