Skip to content

Commit 08ff16b

Browse files
committed
Disable verify_lfs_checkout for linux
It seems like linux has the same problem as windows. The checkout field is false why the lfs files (dataset files) are checked out correctly.
1 parent 561c6f1 commit 08ff16b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

client/src/cbltest/utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import json
22
import os
33
import subprocess
4+
import sys
45
import time
56
from collections.abc import Callable
67
from typing import Any, TypeVar, cast
@@ -46,10 +47,10 @@ def verify_lfs_checkout() -> None:
4647
"""
4748
This function is used to verify that the LFS files are being properly checked out.
4849
"""
49-
if os.name == "nt":
50-
# This check, for whatever reason, is entirely unreliable on Windows. The command itself returns
51-
# what I expect, but the checkout field is always false when invoking from python,
52-
# even when the files are properly checked out
50+
if os.name == "nt" or sys.platform.startswith("linux"):
51+
# This check, for whatever reason, is entirely unreliable on Windows and linux.
52+
# The command itself returns what I expect, but the checkout field is always false
53+
# when invoking from python, even when the files are properly checked out
5354
return
5455

5556
try:

0 commit comments

Comments
 (0)