git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 1/2] t9803-git-p4-shell-metachars.sh: update to use test_path_* functions

From
SGsanchit1053 via GitGitGadget <gitgitgadget@gmail.com>
Date
Mar 21, 2024, 20:29 UTC
Message-ID
<b541ce7a49cedee5a3044af8b52bf1d155496211.1711052946.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.1691.v2.git.git.1711052946.gitgitgadget@gmail.com>
From: sanchit1053 <sanchit1053@gmail.com>
Signed-off-by: sanchit1053 <sanchit1053@gmail.com>
---
 t/t9803-git-p4-shell-metachars.sh | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/t/t9803-git-p4-shell-metachars.sh b/t/t9803-git-p4-shell-metachars.sh
index 2913277013d..4905ed2ae9e 100755
--- a/t/t9803-git-p4-shell-metachars.sh
+++ b/t/t9803-git-p4-shell-metachars.sh
@@ -33,8 +33,8 @@ test_expect_success 'shell metachars in filenames' '
 	(
 		cd "$cli" &&
 		p4 sync ... &&
-		test -e "file with spaces" &&
-		test -e "foo\$bar"
+		test_path_exists "file with spaces" &&
+		test_path_exists "foo\$bar"
 	)
 '
 
@@ -52,8 +52,8 @@ test_expect_success 'deleting with shell metachars' '
 	(
 		cd "$cli" &&
 		p4 sync ... &&
-		test ! -e "file with spaces" &&
-		test ! -e foo\$bar
+		test_path_is_missing "file with spaces" &&
+		test_path_is_missing foo\$bar
 	)
 '
 
@@ -100,8 +100,8 @@ test_expect_success 'branch with shell char' '
 		git p4 clone --dest=. --detect-branches //depot@all &&
 		git log --all --graph --decorate --stat &&
 		git reset --hard p4/depot/branch\$3 &&
-		test -f shell_char_branch_file &&
-		test -f f1
+		test_path_is_file shell_char_branch_file &&
+		test_path_is_file f1
 	)
 '
 
-- 
gitgitgadget
Previous: Sanchit Jindal via GitGitGadgetNext: Sanchit Jindal via GitGitGadget
Message 8 of 9 in “t9803-git-p4-shell-metachars.sh: update to use test_path_* functions”
  1. 0/2 t9803-git-p4-shell-metachars.sh: update to use test_path_* functionsSanchit Jindal via GitGitGadget, Mar 21, 2024
  2. 1/2 t9803-git-p4-shell-metachars.sh: update to use test_path_* functionssanchit1053 via GitGitGadget, Mar 21, 2024
  3. 2/2 t9803: update commit messages and descriptionSanchit Jindal via GitGitGadget, Mar 21, 2024
  4. Eric SunshineMar 21, 2024
  5. Sanchit JindalMar 21, 2024
  6. Junio C HamanoMar 21, 2024
  7. 0/2 t9803-git-p4-shell-metachars.sh: update to use test_path_* functionsSanchit Jindal via GitGitGadget, Mar 21, 2024
  8. 1/2 t9803-git-p4-shell-metachars.sh: update to use test_path_* functionssanchit1053 via GitGitGadget, Mar 21, 2024
  9. 2/2 t9803: update commit messages and descriptionSanchit Jindal via GitGitGadget, Mar 21, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.