Skip to content

Commit 61eec5a

Browse files
committed
prevent env-altering tests to affect shallow tests
These are sensitive to GIT_SHALLOW_FILE, which can mess up clones.
1 parent 38eed1d commit 61eec5a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gix/tests/repository/shallow.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use crate::util::{hex_to_id, named_subrepo_opts};
2+
use serial_test::parallel;
23

34
#[test]
5+
#[parallel]
46
fn no() -> crate::Result {
57
for name in ["base", "empty"] {
68
let repo = named_subrepo_opts("make_shallow_repo.sh", name, crate::restricted())?;
@@ -22,6 +24,7 @@ fn no() -> crate::Result {
2224
}
2325

2426
#[test]
27+
#[parallel]
2528
fn yes() -> crate::Result {
2629
for name in ["shallow.git", "shallow"] {
2730
let repo = named_subrepo_opts("make_shallow_repo.sh", name, crate::restricted())?;
@@ -38,8 +41,10 @@ mod traverse {
3841
use gix_traverse::commit::Sorting;
3942

4043
use crate::util::{hex_to_id, named_subrepo_opts};
44+
use serial_test::parallel;
4145

4246
#[test]
47+
#[parallel]
4348
fn boundary_is_detected_triggering_no_error() -> crate::Result {
4449
for name in ["shallow.git", "shallow"] {
4550
let repo = named_subrepo_opts("make_shallow_repo.sh", name, crate::restricted())?;
@@ -50,6 +55,7 @@ mod traverse {
5055
}
5156

5257
#[test]
58+
#[parallel]
5359
fn complex_graphs_can_be_iterated_despite_multiple_shallow_boundaries() -> crate::Result {
5460
let base = gix_path::realpath(gix_testtools::scripted_fixture_read_only("make_remote_repos.sh")?.join("base"))?;
5561
let shallow_base = gix_testtools::scripted_fixture_read_only_with_args(

0 commit comments

Comments
 (0)