summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-12-04 11:55:26 +0000
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-12-04 11:55:26 +0000
commitb4e37e94ddff75832dd1fc357fbaeecb1f93a28e (patch)
treeffd3107975a9249c9d72a4b5acf7cf5c180dda31
parent3173e26d58b07a5833bbe8edff08e31e3802a108 (diff)
automated: kselftest: ignore comment lines in skipfile
All lines starting with # in skipfile are ignored. This allows to preserve comments in the skipfiles Change-Id: I01f877511895ee634cddd91160dbdb5dc86e2d1d Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
-rwxr-xr-xautomated/linux/kselftest/kselftest.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/automated/linux/kselftest/kselftest.sh b/automated/linux/kselftest/kselftest.sh
index 212ebc5..d3c42f4 100755
--- a/automated/linux/kselftest/kselftest.sh
+++ b/automated/linux/kselftest/kselftest.sh
@@ -109,6 +109,7 @@ fi
# Ignore SKIPFILE when SKIPLIST provided
if [ -f "${SKIPFILE}" ] && [ -z "${SKIPLIST}" ]; then
while read -r test_name; do
+ case "${test_name}" in \#*) continue ;; esac
# shellcheck disable=SC2086
sed -i "/.\/${test_name}/c\echo \"selftests: ${test_name} [SKIP]\"" run_kselftest.sh
done < "${SKIPFILE}"