From f101ef36f7c1f29bdc56885e475ca3f23874c2d1 Mon Sep 17 00:00:00 2001 From: Anders Roxell Date: Fri, 16 Nov 2018 13:41:31 +0100 Subject: automated: kselftest: kselftest.sh: just continue If we pass an empty string to flag -S '' we ended up trying to wget http-skipfile.yaml that doesn't exists. If I only pass this in the job yaml file: parameters: KSELFTEST_PATH: /opt/kselftests/default-in-kernel/ The solution were to add a test if string length is zero then just continue. Change-Id: I7dd396b6263daa3c79e8166ff57e1fad28828316 Signed-off-by: Anders Roxell --- automated/linux/kselftest/kselftest.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/automated/linux/kselftest/kselftest.sh b/automated/linux/kselftest/kselftest.sh index 033105a..957be07 100755 --- a/automated/linux/kselftest/kselftest.sh +++ b/automated/linux/kselftest/kselftest.sh @@ -61,6 +61,9 @@ while getopts "t:s:u:p:L:S:b:g:e:h" opt; do # SKIPFILE="${SCRIPTPATH}/${SKIPFILE}" #fi + if [ -z "${OPTARGS}" ]; then + continue + fi if [ -z "${OPTARG##*http*}" ]; then if [ -z "${OPTARG##*yaml*}" ]; then # Skipfile is of type yaml -- cgit v1.2.3