From 64da82c661b2a28c7a258bd30c0084633d0e1896 Mon Sep 17 00:00:00 2001 From: Justin Wernick Date: Fri, 11 Aug 2023 22:04:19 +0200 Subject: Create group directories if they don't already exist - With the correct ownership - With the correct permissions Fix #5 --- tests/cli_test_utils/context.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/cli_test_utils') diff --git a/tests/cli_test_utils/context.rs b/tests/cli_test_utils/context.rs index 2517040..2c61085 100644 --- a/tests/cli_test_utils/context.rs +++ b/tests/cli_test_utils/context.rs @@ -100,15 +100,15 @@ impl TestContext { } } +pub fn arbitrary_user_group() -> String { + get_user_groups().into_iter().next().unwrap() +} + pub fn personal_repo_path(repo_name: &str) -> String { let username = get_username().unwrap(); format!("git/{username}/{repo_name}.git") } -pub fn arbitrary_user_group() -> String { - get_user_groups().into_iter().next().unwrap() -} - pub fn group_repo_path(group: &str, repo_name: &str) -> String { format!("git/{group}/{repo_name}.git") } -- cgit v1.2.3