[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH OSSTEST] mg-execute-flight: create tmp directory if it doesn't exist



On Mon, 2015-12-07 at 14:09 +0000, Wei Liu wrote:
> Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>

Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

Most other places just do "mkdir -p tmp" (-p includes "no error if
existing"). I guess it doesn't really matter either way.

Ian.

> ---
> Â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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.