tests: don't give unportable ">" to "test" built-in, use -gt
[gitweb.git] / t / t7004-tag.sh
index 8a6e8032da3ed6d4a64e725a704403195a7a42df..c6791cf396a29d5b80906ee662c2f1036f372f67 100755 (executable)
@@ -1599,10 +1599,12 @@ test_expect_success 'mixing incompatibles modes and options is forbidden' '
        test_must_fail git tag --contains tag-blob &&
        test_must_fail git tag --no-contains tag-tree &&
        test_must_fail git tag --no-contains tag-blob &&
-       test_must_fail git tag --contains --no-contains
+       test_must_fail git tag --contains --no-contains &&
+       test_must_fail git tag --no-with HEAD &&
+       test_must_fail git tag --no-without HEAD
 '
 
-for option in --contains --no-contains --merged --no-merged --points-at
+for option in --contains --with --no-contains --without --merged --no-merged --points-at
 do
        test_expect_success "mixing incompatible modes with $option is forbidden" "
                test_must_fail git tag -d $option HEAD &&
@@ -1887,7 +1889,7 @@ EOF"
        run_with_limited_stack git tag --contains HEAD >actual &&
        test_cmp expect actual &&
        run_with_limited_stack git tag --no-contains HEAD >actual &&
-       test_line_count ">" 10 actual
+       test_line_count "-gt" 10 actual
 '
 
 test_expect_success '--format should list tags as per format given' '