Merge branch 'fc/show-non-empty-errors-in-test'
[gitweb.git] / t / t3400-rebase.sh
index e6af021c10b61f565e1ebc5b0a974eb949737e07..6a5ec32a2642253cb6bb8a05ff51fecc44aa4a00 100755 (executable)
@@ -145,8 +145,7 @@ test_expect_success 'rebase a single mode change' '
 '
 
 test_expect_success 'rebase is not broken by diff.renames' '
-       git config diff.renames copies &&
-       test_when_finished "git config --unset diff.renames" &&
+       test_config diff.renames copies &&
        git checkout filemove &&
        GIT_TRACE=1 git rebase force-3way
 '
@@ -186,7 +185,7 @@ test_expect_success 'default to @{upstream} when upstream arg is missing' '
 test_expect_success 'rebase -q is quiet' '
        git checkout -b quiet topic &&
        git rebase -q master >output.out 2>&1 &&
-       test ! -s output.out
+       test_must_be_empty output.out
 '
 
 test_expect_success 'Rebase a commit that sprinkles CRs in' '