summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2021-09-10 17:06:56 -0400
committerColin Walters <walters@verbum.org>2021-09-10 17:07:38 -0400
commit213b8608ea579b6cd0fb4140e9689fc814f36c26 (patch)
treeda3baab423e9941395c2647ebbf53472560b3a95
parent09804f7a093b45adf4d36820fa5158990e89276d (diff)
downloadostree-213b8608ea579b6cd0fb4140e9689fc814f36c26.tar.gz
tests/pull-test: Avoid duplicating test numbers
We do this in other places; avoids touching two numbers when adding tests. Let computers do the addition.
-rw-r--r--tests/pull-test.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/pull-test.sh b/tests/pull-test.sh
index fcc22812..7d363f47 100644
--- a/tests/pull-test.sh
+++ b/tests/pull-test.sh
@@ -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