Commit 256f9455 authored by Vincent Pelletier's avatar Vincent Pelletier

test: Try harder to locate caucase.sh .

parent f21de813
Pipeline #12443 passed with stage
in 0 seconds
...@@ -3138,9 +3138,9 @@ if getattr(CaucaseTest, 'assertItemsEqual', None) is None: # pragma: no cover ...@@ -3138,9 +3138,9 @@ if getattr(CaucaseTest, 'assertItemsEqual', None) is None: # pragma: no cover
CaucaseTest.assertItemsEqual = CaucaseTest.assertCountEqual CaucaseTest.assertItemsEqual = CaucaseTest.assertCountEqual
# pylint: enable=no-member # pylint: enable=no-member
_caucase_root = os.path.normpath( _caucase_root = os.path.dirname(__file__)
os.path.join(os.path.dirname(__file__), os.path.pardir), while not os.path.exists(os.path.join(_caucase_root, '.git')):
) _caucase_root = os.path.normpath(os.path.join(_caucase_root, os.path.pardir))
_caucase_sh_path = find_executable( _caucase_sh_path = find_executable(
'caucase.sh', 'caucase.sh',
path=os.path.join( path=os.path.join(
...@@ -3158,7 +3158,6 @@ def _runCaucaseSh(*args): ...@@ -3158,7 +3158,6 @@ def _runCaucaseSh(*args):
close_fds=True, close_fds=True,
env={ env={
'CAUCASE_PYTHON': sys.executable, 'CAUCASE_PYTHON': sys.executable,
'PYTHONPATH': _caucase_root,
}, },
) )
stdout, _ = process.communicate() stdout, _ = process.communicate()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment