From b4e37e94ddff75832dd1fc357fbaeecb1f93a28e Mon Sep 17 00:00:00 2001 From: Milosz Wasilewski Date: Mon, 4 Dec 2017 11:55:26 +0000 Subject: 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 --- automated/linux/kselftest/kselftest.sh | 1 + 1 file changed, 1 insertion(+) 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}" -- cgit v1.2.3