diff options
author | Justin Wernick <justin@worthe-it.co.za> | 2023-08-11 22:04:19 +0200 |
---|---|---|
committer | Justin Wernick <justin@worthe-it.co.za> | 2023-08-15 21:40:35 +0200 |
commit | 64da82c661b2a28c7a258bd30c0084633d0e1896 (patch) | |
tree | e631e496b70f10d8414a3d1962797aa6354de918 /tests/cli_test_utils/context.rs | |
parent | 2203a06532979e8c4772dcb134c109e1f308031a (diff) |
Create group directories if they don't already exist
- With the correct ownership
- With the correct permissions
Fix #5
Diffstat (limited to 'tests/cli_test_utils/context.rs')
-rw-r--r-- | tests/cli_test_utils/context.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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") } |