Merge branch 'jc/clean-after-sanity-tests'
authorJunio C Hamano <gitster@pobox.com>
Thu, 28 Jun 2018 19:53:33 +0000 (12:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jun 2018 19:53:33 +0000 (12:53 -0700)
test cleanup.

* jc/clean-after-sanity-tests:
  tests: clean after SANITY tests

1  2 
t/t0070-fundamental.sh
t/t7508-status.sh

@@@ -19,9 -19,9 +19,9 @@@ test_expect_success 'mktemp to nonexist
  
  test_expect_success POSIXPERM,SANITY 'mktemp to unwritable directory prints filename' '
        mkdir cannotwrite &&
-       chmod -w cannotwrite &&
        test_when_finished "chmod +w cannotwrite" &&
 -      test_must_fail test-mktemp cannotwrite/testXXXXXX 2>err &&
+       chmod -w cannotwrite &&
 +      test_must_fail test-tool mktemp cannotwrite/testXXXXXX 2>err &&
        grep "cannotwrite/test" err
  '
  
Simple merge