aboutsummaryrefslogtreecommitdiff
path: root/runltp
diff options
context:
space:
mode:
Diffstat (limited to 'runltp')
-rwxr-xr-xrunltp8
1 files changed, 4 insertions, 4 deletions
diff --git a/runltp b/runltp
index 8e40d6742..302c4a728 100755
--- a/runltp
+++ b/runltp
@@ -692,10 +692,10 @@ main()
fi
# Blacklist or skip tests if a SKIPFILE was specified with -S
- if [ -n "$SKIPFILE" ]
- then
- for file in $( cat $SKIPFILE ); do
- sed -i "/^$file[ \t]/d" ${TMP}/alltests
+ if [ -n "${SKIPFILE}" ]; then
+ for test_name in $(awk '{print $1}' "${SKIPFILE}"); do
+ case "${test_name}" in \#*) continue;; esac
+ sed -i "/\<${test_name}\>/c\\${test_name} exit 32;" alltests
done
fi