From: Omar Sandoval <osandov@xxxxxx> Sometimes it's useful to keep track of why we're excluding a particular test. Technically, we can include whatever explanation we want in the exclude file since we just grep for the test names, but properly supporting comments is a little more robust. This patch makes it so that the rest of a line after a '#' is ignored. Signed-off-by: Omar Sandoval <osandov@xxxxxx> --- check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check b/check index 9fbc305e9021..69341d8c4f72 100755 --- a/check +++ b/check @@ -224,14 +224,14 @@ while [ $# -gt 0 ]; do -X) xfile=$2; shift ; for d in $SRC_GROUPS $FSTYP; do [ -f $SRC_DIR/$d/$xfile ] || continue - for f in `cat $SRC_DIR/$d/$xfile`; do + for f in `sed "s/#.*$//" $SRC_DIR/$d/$xfile`; do echo $d/$f >> $tmp.xlist done done ;; -E) xfile=$2; shift ; if [ -f $xfile ]; then - cat "$xfile" >> $tmp.xlist + sed "s/#.*$//" "$xfile" >> $tmp.xlist fi ;; -s) RUN_SECTION="$RUN_SECTION $2"; shift ;; -- 2.9.2 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html