Skip to content

Commit

Permalink
dev(narugo): use which
Browse files Browse the repository at this point in the history
  • Loading branch information
HansBug committed Jul 20, 2024
1 parent 30bc988 commit 1ab50f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 3 additions & 7 deletions test/system/git/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import glob
import os.path
import shutil

_GIT_LFSS = glob.glob(os.path.join('dist', 'git_lfs*'))
_GIT_LFS = _GIT_LFSS[0] if _GIT_LFSS else None

_GIT_RAWS = glob.glob(os.path.join('dist', 'git_raw*'))
_GIT_RAW = _GIT_RAWS[0] if _GIT_RAWS else None
_GIT_LFS = shutil.which('git_lfs', path='dist')
_GIT_RAW = shutil.which('git_raw', path='dist')
10 changes: 3 additions & 7 deletions test/testing/requires/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import glob
import os.path
import shutil

_GIT_LFSS = glob.glob(os.path.join('dist', 'git_lfs*'))
_GIT_LFS = _GIT_LFSS[0] if _GIT_LFSS else None

_GIT_RAWS = glob.glob(os.path.join('dist', 'git_raw*'))
_GIT_RAW = _GIT_RAWS[0] if _GIT_RAWS else None
_GIT_LFS = shutil.which('git_lfs', path='dist')
_GIT_RAW = shutil.which('git_raw', path='dist')

0 comments on commit 1ab50f1

Please sign in to comment.