@@ -62,9 +62,11 @@ test_expect_success 'basic p4 labels' '
6262
6363 cd main &&
6464 git checkout TAG_F1_ONLY &&
65- ! test -f f2 &&
65+ test_path_is_missing f2 &&
6666 git checkout TAG_WITH\$_SHELL_CHAR &&
67- test -f f1 && test -f f2 && test -f file_with_\$metachar &&
67+ test_path_is_file f1 &&
68+ test_path_is_file f2 &&
69+ test_path_is_file file_with_\$metachar &&
6870
6971 git show TAG_LONG_LABEL | grep -q "A Label second line"
7072 )
@@ -102,11 +104,11 @@ test_expect_success 'two labels on the same changelist' '
102104
103105 git checkout TAG_F1_1 &&
104106 ls &&
105- test -f f1 &&
107+ test_path_is_file f1 &&
106108
107109 git checkout TAG_F1_2 &&
108110 ls &&
109- test -f f1
111+ test_path_is_file f1
110112 )
111113'
112114
@@ -135,9 +137,9 @@ test_expect_success 'export git tags to p4' '
135137 p4 labels ... | grep LIGHTWEIGHT_TAG &&
136138 p4 label -o GIT_TAG_1 | grep "tag created in git:xyzzy" &&
137139 p4 sync ...@GIT_TAG_1 &&
138- ! test -f main/f10 &&
140+ test_path_is_missing main/f10 &&
139141 p4 sync ...@GIT_TAG_2 &&
140- test -f main/f10
142+ test_path_is_file main/f10
141143 )
142144'
143145
@@ -168,9 +170,9 @@ test_expect_success 'export git tags to p4 with deletion' '
168170 cd "$cli" &&
169171 p4 sync ... &&
170172 p4 sync ...@GIT_TAG_ON_DELETED &&
171- test -f main/deleted_file &&
173+ test_path_is_file main/deleted_file &&
172174 p4 sync ...@GIT_TAG_AFTER_DELETION &&
173- ! test -f main/deleted_file &&
175+ test_path_is_missing main/deleted_file &&
174176 echo "checking label contents" &&
175177 p4 label -o GIT_TAG_ON_DELETED | grep "tag on deleted file"
176178 )
@@ -231,17 +233,25 @@ test_expect_success 'importing labels with missing revisions' '
231233 P4CLIENT=missing-revision &&
232234 client_view "//depot/missing-revision/... //missing-revision/..." &&
233235 cd "$cli" &&
234- >f1 && p4 add f1 && p4 submit -d "start" &&
236+ >f1 &&
237+ p4 add f1 &&
238+ p4 submit -d "start" &&
235239
236240 p4 tag -l TAG_S0 ... &&
237241
238- >f2 && p4 add f2 && p4 submit -d "second" &&
242+ >f2 &&
243+ p4 add f2 &&
244+ p4 submit -d "second" &&
239245
240246 startrev=$(p4_head_revision //depot/missing-revision/...) &&
241247
242- >f3 && p4 add f3 && p4 submit -d "third" &&
248+ >f3 &&
249+ p4 add f3 &&
250+ p4 submit -d "third" &&
243251
244- p4 edit f2 && date >f2 && p4 submit -d "change" f2 &&
252+ p4 edit f2 &&
253+ date >f2 &&
254+ p4 submit -d "change" f2 &&
245255
246256 endrev=$(p4_head_revision //depot/missing-revision/...) &&
247257
0 commit comments