Skip to content

Commit

Permalink
adapt to changes in gix-testtools
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jul 4, 2024
1 parent 89bd8a1 commit 4a38012
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion gix-filter/tests/driver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mod baseline {
if cfg!(windows) {
exe = exe.replace('\\', "/");
}
gix_testtools::scripted_fixture_read_only_with_args("baseline.sh", [exe])?;
gix_testtools::scripted_fixture_read_only_with_args_single_archive("baseline.sh", [exe])?;
Ok(())
}
}
Expand Down
Binary file not shown.
11 changes: 7 additions & 4 deletions gix/src/remote/connection/fetch/update_refs/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@ mod update {
}

fn repo(name: &str) -> gix::Repository {
let dir =
gix_testtools::scripted_fixture_read_only_with_args("make_fetch_repos.sh", [base_repo_path()]).unwrap();
let dir = gix_testtools::scripted_fixture_read_only_with_args_single_archive(
"make_fetch_repos.sh",
[base_repo_path()],
)
.unwrap();
gix::open_opts(dir.join(name), restricted()).unwrap()
}
fn named_repo(name: &str) -> gix::Repository {
let dir = gix_testtools::scripted_fixture_read_only("make_remote_repos.sh").unwrap();
gix::open_opts(dir.join(name), restricted()).unwrap()
}
fn repo_rw(name: &str) -> (gix::Repository, gix_testtools::tempfile::TempDir) {
let dir = gix_testtools::scripted_fixture_writable_with_args(
let dir = gix_testtools::scripted_fixture_writable_with_args_single_archive(
"make_fetch_repos.sh",
[base_repo_path()],
gix_testtools::Creation::ExecuteScript,
Expand Down Expand Up @@ -189,7 +192,7 @@ mod update {

#[test]
fn checked_out_branches_in_worktrees_are_rejected_with_additional_information() -> Result {
let root = gix_path::realpath(gix_testtools::scripted_fixture_read_only_with_args(
let root = gix_path::realpath(gix_testtools::scripted_fixture_read_only_with_args_single_archive(
"make_fetch_repos.sh",
[base_repo_path()],
)?)?;
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion gix/tests/remote/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ mod blocking_and_async_io {
args: impl IntoIterator<Item = S>,
mode: Mode,
) -> Result<(gix::Repository, gix_testtools::tempfile::TempDir), gix::open::Error> {
let dir = gix_testtools::scripted_fixture_writable_with_args(
let dir = gix_testtools::scripted_fixture_writable_with_args_single_archive(
"make_fetch_repos.sh",
[{
let mut url = base_repo_path();
Expand Down
2 changes: 1 addition & 1 deletion gix/tests/repository/shallow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ mod traverse {
#[parallel]
fn complex_graphs_can_be_iterated_despite_multiple_shallow_boundaries() -> crate::Result {
let base = gix_path::realpath(gix_testtools::scripted_fixture_read_only("make_remote_repos.sh")?.join("base"))?;
let shallow_base = gix_testtools::scripted_fixture_read_only_with_args(
let shallow_base = gix_testtools::scripted_fixture_read_only_with_args_single_archive(
"make_complex_shallow_repo.sh",
Some(base.to_string_lossy()),
)?;
Expand Down

0 comments on commit 4a38012

Please sign in to comment.