From fee2b9ff3fdd571ed529ee631946f41aaea600fd Mon Sep 17 00:00:00 2001 From: aryangupta701 Date: Mon, 26 Feb 2024 21:54:11 +0100 Subject: [PATCH] tests: modernize the test script Signed-off-by: aryangupta701 --- t/t0010-racy-git.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/t/t0010-racy-git.sh b/t/t0010-racy-git.sh index 837c8b7228b98e..f51acb5784d535 100755 --- a/t/t0010-racy-git.sh +++ b/t/t0010-racy-git.sh @@ -16,19 +16,18 @@ do echo xyzzy >infocom files=$(git diff-files -p) - test_expect_success \ - "Racy GIT trial #$trial part A" \ - 'test "" != "$files"' + test_expect_success "Racy GIT trial #$trial part A" ' + test "" != "$files" + ' sleep 1 echo xyzzy >cornerstone git update-index --add cornerstone files=$(git diff-files -p) - test_expect_success \ - "Racy GIT trial #$trial part B" \ - 'test "" != "$files"' - + test_expect_success "Racy GIT trial #$trial part B" ' + test "" != "$files" + ' done test_done