From c55fa41238c8b7c37bae603be39ca92dc9aadc16 Mon Sep 17 00:00:00 2001 From: Felipe Monteiro Date: Thu, 26 Oct 2017 21:33:44 +0100 Subject: [PATCH] Create results directory for functional test results if doesn't exist Change-Id: Ib9a806a8115bda7e190662fc70744788852f3a36 --- tools/functional-tests.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/functional-tests.sh b/tools/functional-tests.sh index 65558775..cdfb1d09 100755 --- a/tools/functional-tests.sh +++ b/tools/functional-tests.sh @@ -129,6 +129,11 @@ log_section Running tests ROOTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +# Create folder for saving HTML test results. +if [ ! -d $ROOTDIR/results ]; then + mkdir $ROOTDIR/results +fi + set +e posargs=$@ if [ ${#posargs} -ge 1 ]; then