build: Adjust lint tests for latest rules.
authorEric Bavier <bavier@member.fsf.org>
Tue, 28 Oct 2014 14:28:29 +0000 (09:28 -0500)
committerEric Bavier <bavier@member.fsf.org>
Tue, 28 Oct 2014 14:28:40 +0000 (09:28 -0500)
* tests/guix-lint.sh (dummy)[description]: Add failing case.
  [doc]: Adjust.

tests/guix-lint.sh

index 5623d53..4f9d6db 100644 (file)
@@ -37,7 +37,7 @@ cat > "$module_dir/foo.scm"<<EOF
     (name "dummy")
     (version "42")
     (synopsis "dummy package")
-    (description "dummy package only used for testing purposes.")))
+    (description "dummy package. Only used for testing purposes.")))
 EOF
 
 export GUIX_PACKAGE_PATH=$module_dir
@@ -52,7 +52,7 @@ grep_warning ()
 # Three issues with the dummy package:
 # 1) the synopsis starts with the package name;
 # 2) the synopsis starts with a lower-case letter;
-# 3) the description starts with a lower-case letter.
+# 3) the description has a single space following the end-of-sentence period.
 
 out=`guix lint dummy 2>&1`
 if [ `grep_warning "$out"` -ne 3 ]