From: Junio C Hamano Date: Thu, 04 Sep 2025 04:10:00 GMT Subject: Re: [PATCH 1/2] t5530: modernize tests Message-ID: In-Reply-To: <20250903-b4-pks-upload-pack-repeated-non-commit-acks-v1-1-4e019af4dddc@pks.im> Patrick Steinhardt writes: > -D=$(pwd) > - > @@ -21,11 +19,7 @@ test_expect_success 'setup and corrupt repository' ' > test_tick && > echo changed >file && > git commit -a -m changed && > - corrupt_repo HEAD:file > - > -' > - > -test_expect_success 'fsck fails' ' > + corrupt_repo HEAD:file && > test_must_fail git fsck > ' > > @@ -40,17 +34,12 @@ test_expect_success 'upload-pack fails due to error in pack-objects packing' ' > ' > > test_expect_success 'corrupt repo differently' ' > - > git hash-object -w file && > - corrupt_repo HEAD^^{tree} > - > -' > - > -test_expect_success 'fsck fails' ' > + corrupt_repo HEAD^^{tree} && > test_must_fail git fsck > ' Both changes make sense. > -test_expect_success 'create empty repository' ' > - > - mkdir foo && > - cd foo && > - git init > - > -' > - > test_expect_success 'fetch fails' ' > - > - test_must_fail git fetch .. main > - > + git init foo && > + test_must_fail git -C foo fetch .. main > ' Nice.