tests/pull-test: Avoid duplicating test numbers
authorColin Walters <walters@verbum.org>
Fri, 10 Sep 2021 21:06:56 +0000 (17:06 -0400)
committerColin Walters <walters@verbum.org>
Fri, 10 Sep 2021 21:07:38 +0000 (17:07 -0400)
We do this in other places; avoids touching two numbers when
adding tests.  Let computers do the addition.

tests/pull-test.sh

index fcc2281266e78819cfe4b6c2426cf9fbe372724c..7d363f4798e33d3c4d49854c533a29bd31d20b2d 100644 (file)
@@ -54,11 +54,12 @@ function verify_initial_contents() {
     assert_file_has_content baz/cow '^moo$'
 }
 
+n_base_tests=35
+gpg_tests=3
 if has_gpgme; then
-    echo "1..38"
+    echo "1..$(($n_base_tests+$gpg_tests))"
 else
-    # 3 tests needs GPG support
-    echo "1..35"
+    echo "1..$((n_base_tests))"
 fi
 
 # Try both syntaxes