##// END OF EJS Templates
hghave: add a check for lfs-test-server...
Matt Harbison -
r35137:a2e927de default
parent child Browse files
Show More
@@ -284,6 +284,17 b' def getgitversion():'
284 284 return (0, 0)
285 285 return (int(m.group(1)), int(m.group(2)))
286 286
287 # https://github.com/git-lfs/lfs-test-server
288 @check("lfs-test-server", "git-lfs test server")
289 def has_lfsserver():
290 exe = 'lfs-test-server'
291 if has_windows():
292 exe = 'lfs-test-server.exe'
293 return any(
294 os.access(os.path.join(path, exe), os.X_OK)
295 for path in os.environ["PATH"].split(os.pathsep)
296 )
297
287 298 @checkvers("git", "git client (with ext::sh support) version >= %s", (1.9,))
288 299 def has_git_range(v):
289 300 major, minor = v.split('.')[0:2]
@@ -1,6 +1,4 b''
1 Require lfs-test-server (https://github.com/git-lfs/lfs-test-server)
2
3 $ hash lfs-test-server || { echo 'skipped: missing lfs-test-server'; exit 80; }
1 #require lfs-test-server
4 2
5 3 $ LFS_LISTEN="tcp://:$HGPORT"
6 4 $ LFS_HOST="localhost:$HGPORT"
General Comments 0
You need to be logged in to leave comments. Login now