mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-16 07:18:25 +01:00
fix windows
This commit is contained in:
committed by
skshetry
parent
4d17c171f1
commit
15f35e827e
@@ -221,7 +221,7 @@ def test_unique_identifier(tmp_dir, dvc, scm, run_copy):
|
||||
assert len(revs) + 1 == len(ids)
|
||||
possible_ids = {
|
||||
True: "dd9cf3a3dc2caac5835e64f258ac2d7b",
|
||||
False: "8406970ad2fcafaa84d9310330a67576",
|
||||
False: "b446f3cdc35539884dcc474d90ac6286",
|
||||
}
|
||||
assert set(ids) == {possible_ids[os.name == "posix"]}
|
||||
|
||||
|
||||
@@ -708,7 +708,7 @@ def test_run_persist(tmp_dir, dvc, outs_command):
|
||||
"--always-changed",
|
||||
outs_command,
|
||||
"file",
|
||||
"echo content >> file",
|
||||
"echo content>>file",
|
||||
]
|
||||
)
|
||||
== 0
|
||||
@@ -767,7 +767,7 @@ def test_rerun_with_same_outputs(
|
||||
"--single-stage",
|
||||
"--outs",
|
||||
"foo",
|
||||
"echo foo > foo",
|
||||
"echo foo>foo",
|
||||
]
|
||||
)
|
||||
== 0
|
||||
@@ -781,7 +781,7 @@ def test_rerun_with_same_outputs(
|
||||
"foo",
|
||||
"--force",
|
||||
"--single-stage",
|
||||
"echo bar >> foo",
|
||||
"echo bar>>foo",
|
||||
]
|
||||
)
|
||||
== 0
|
||||
@@ -879,7 +879,7 @@ def test_run_force_preserves_comments_and_meta(tmp_dir, dvc, run_copy):
|
||||
dvc.reproduce("bar.dvc")
|
||||
|
||||
# CRLF on windows makes the generated file bigger in size
|
||||
code_size = 143 if os.name == "nt" else 167
|
||||
code_size = 176 if os.name == "nt" else 167
|
||||
assert (tmp_dir / "bar.dvc").read_text() == textwrap.dedent(
|
||||
f"""\
|
||||
desc: top desc
|
||||
|
||||
Reference in New Issue
Block a user