]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t7103-reset-bare.sh
tests: change some 'test $(git) = "x"' to test_cmp
[thirdparty/git.git] / t / t7103-reset-bare.sh
index 0de83e36199ec44eec0ea1ca568c730da759d5d3..a60153f9f32318c5ee31d2b16ec506a7a59ddd6d 100755 (executable)
@@ -63,9 +63,12 @@ test_expect_success '"mixed" reset is not allowed in bare' '
        test_must_fail git reset --mixed HEAD^
 '
 
-test_expect_success '"soft" reset is allowed in bare' '
+test_expect_success !SANITIZE_LEAK '"soft" reset is allowed in bare' '
        git reset --soft HEAD^ &&
-       test "$(git show --pretty=format:%s | head -n 1)" = "one"
+       git show --pretty=format:%s >out &&
+       echo one >expect &&
+       head -n 1 out >actual &&
+       test_cmp expect actual
 '
 
 test_done