Skip to content

Commit 23cf34f

Browse files
committed
try using the same ftest venv
Test-tag: test_dfuse_daos_build_wt_pil4dfs Signed-off-by: Dalton Bohning <dalton.bohning@hpe.com>
1 parent 370dc1a commit 23cf34f

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

src/tests/ftest/dfuse/daos_build.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,10 @@ def run_build_test(self, cache_mode, il_lib=None, run_on_vms=False):
102102
mount_dir = dfuse.mount_dir.value
103103
build_dir = os.path.join(mount_dir, 'daos')
104104

105-
# remote_env['PATH'] = f"{os.path.join(mount_dir, 'venv', 'bin')}:$PATH"
106-
# remote_env['VIRTUAL_ENV'] = os.path.join(mount_dir, 'venv')
105+
virtual_env = os.environ['VIRTUAL_ENV']
106+
virtual_env_vin = os.path.join(virtual_env, 'bin')
107+
remote_env['PATH'] = f"{virtual_env_vin}:$PATH"
108+
remote_env['VIRTUAL_ENV'] = virtual_env
107109
remote_env['COVFILE'] = os.environ['COVFILE']
108110
remote_env['HTTPS_PROXY'] = os.environ.get('HTTPS_PROXY', '')
109111
remote_env['NO_PROXY'] = os.environ.get('NO_PROXY', '')
@@ -129,15 +131,16 @@ def run_build_test(self, cache_mode, il_lib=None, run_on_vms=False):
129131
elif "ubuntu" in distro_info.name.lower():
130132
distro = "ubuntu"
131133

132-
venv_activate = os.path.join(mount_dir, 'venv', 'bin', 'activate')
133-
cmds = [f'{sys.executable} -m venv {mount_dir}/venv',
134-
f'git clone https://github.com/daos-stack/daos.git {build_dir}',
134+
# venv_activate = os.path.join(mount_dir, 'venv', 'bin', 'activate')
135+
# f'{sys.executable} -m venv {mount_dir}/venv',
136+
cmds = [f'git clone https://github.com/daos-stack/daos.git {build_dir}',
135137
f'git -C {build_dir} checkout {__get_daos_build_checkout(self)}',
136138
f'git -C {build_dir} submodule update --init --recursive',
137139
f'cp {build_dir}/utils/scripts/install-{distro}.sh /tmp/install.sh',
138140
'sudo -E NO_OPENMPI_DEVEL=1 /tmp/install.sh -y',
139-
'python3 -m pip install pip --upgrade',
140-
f'python3 -m pip install -r {build_dir}/requirements-build.txt',
141+
f'{sys.executable} -m pip install pip --upgrade',
142+
f'{sys.executable} -m pip install -r {build_dir}/requirements-build.txt',
143+
'which scons',
141144
f'scons -C {build_dir} --jobs {build_jobs} --build-deps=only',
142145
f'daos filesystem query {mount_dir}',
143146
f'daos filesystem evict {build_dir}',
@@ -147,8 +150,8 @@ def run_build_test(self, cache_mode, il_lib=None, run_on_vms=False):
147150
f'daos filesystem query {mount_dir}']
148151
for cmd in cmds:
149152
command = '{} {}'.format(preload_cmd, cmd)
150-
if '-m venv' not in command:
151-
command = f'source {venv_activate} && {command}'
153+
# if '-m venv' not in command:
154+
# command = f'source {venv_activate} && {command}'
152155
# Use a short timeout for most commands, but vary the build timeout based on dfuse mode.
153156
timeout = 10 * 60
154157
if cmd.startswith('scons'):

0 commit comments

Comments
 (0)