diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-02-17 13:30:43 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-17 13:30:43 -0800 |
| commit | 11294bb0fa540d214d071b32cf74b1ed37b3bbbd (patch) | |
| tree | e04cc4db200a986e77597dc1ec4e1bb27974abcb /t | |
| parent | dba8cfa9c060e0d9eb7eae94531062bdd4a77c58 (diff) | |
| parent | aaf3cc3d8dfb5357713ba9093f3eb51c72c66456 (diff) | |
| download | git-11294bb0fa540d214d071b32cf74b1ed37b3bbbd.tar.xz | |
Merge branch 'sd/t7003-test-path-is-helpers'
Test updates.
* sd/t7003-test-path-is-helpers:
t7003: modernize path existence checks using test helpers
Diffstat (limited to 't')
| -rwxr-xr-x | t/t7003-filter-branch.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh index 5ab4d41ee7..c475769858 100755 --- a/t/t7003-filter-branch.sh +++ b/t/t7003-filter-branch.sh @@ -92,8 +92,8 @@ test_expect_success 'rewrite, renaming a specific file' ' test_expect_success 'test that the file was renamed' ' test D = "$(git show HEAD:doh --)" && - ! test -f D.t && - test -f doh && + test_path_is_missing D.t && + test_path_is_file doh && test D = "$(cat doh)" ' @@ -103,10 +103,10 @@ test_expect_success 'rewrite, renaming a specific directory' ' test_expect_success 'test that the directory was renamed' ' test dir/D = "$(git show HEAD:diroh/D.t --)" && - ! test -d dir && - test -d diroh && - ! test -d diroh/dir && - test -f diroh/D.t && + test_path_is_missing dir && + test_path_is_dir diroh && + test_path_is_missing diroh/dir && + test_path_is_file diroh/D.t && test dir/D = "$(cat diroh/D.t)" ' |
