diff --git a/dvc/testing/benchmarks/cli/commands/test_data_status.py b/dvc/testing/benchmarks/cli/commands/test_data_status.py index d2c73561e..9e2f0f152 100644 --- a/dvc/testing/benchmarks/cli/commands/test_data_status.py +++ b/dvc/testing/benchmarks/cli/commands/test_data_status.py @@ -4,12 +4,15 @@ from shutil import rmtree def test_data_status(bench_dvc, tmp_dir, scm, dvc, make_dataset): args = ("data", "status") dataset = make_dataset(cache=True, files=True, dvcfile=True, commit=False) + scm.ignore(dataset) rmtree(dvc.tmp_dir) bench_dvc(*args, name="new") bench_dvc(*args, name="noop") - tmp_dir.scm_add(dataset.with_suffix(".dvc").name, commit="add dataset") + tmp_dir.scm_add( + [dataset.with_suffix(".dvc").name, ".gitignore"], commit="add dataset" + ) (dataset / "new").write_text("new") bench_dvc(*args, name="changed") @@ -26,12 +29,15 @@ def test_data_status_all_flags(bench_dvc, tmp_dir, scm, dvc, make_dataset): "--json", ) dataset = make_dataset(cache=True, files=True, dvcfile=True, commit=False) + scm.ignore(dataset) rmtree(dvc.tmp_dir) bench_dvc(*args, name="new") bench_dvc(*args, name="noop") - tmp_dir.scm_add(dataset.with_suffix(".dvc").name, commit="add dataset") + tmp_dir.scm_add( + [dataset.with_suffix(".dvc").name, ".gitignore"], commit="add dataset" + ) (dataset / "new").write_text("new") bench_dvc(*args, name="changed")