tests: avoid a false failure on systems without inotify
authorPádraig Brady <P@draigBrady.com>
Sun, 9 Oct 2011 10:25:34 +0000 (11:25 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 12 Oct 2011 08:56:04 +0000 (10:56 +0200)
* tests/tail-2/follow-name: Exclude the inotify warning
from the comparison.
Reported by Bruno Haible.

tests/tail-2/follow-name

index ef9434a..e34b779 100755 (executable)
@@ -27,6 +27,10 @@ EOF
 timeout 10 tail --follow=name no-such > out 2> err
 test $? = 1 || fail=1
 
+# Remove an inconsequential inotify warning so
+# we can compare against the above error
+sed '/inotify cannot be used/d' err > k && mv k err
+
 compare err exp || fail=1
 
 Exit $fail