Merge: Activate VM
[nit.git] / tests / tests.sh
index a91d049..6c76366 100755 (executable)
@@ -319,7 +319,7 @@ need_skip()
 
        # Skip by OS
        os_skip_file=`uname`.skip
-       if test -e $os_skip_file && echo "$1" | grep -f "$os_skip_file"; then
+       if test -e $os_skip_file && echo "$1" | grep -f "$os_skip_file" >/dev/null 2>&1; then
                echo "=> $2: [skip os]"
                echo >>$xml "<testcase classname='`xmlesc "$3"`' name='`xmlesc "$2"`' `timestamp`><skipped/></testcase>"
                return 0