Skip to content

Commit e8ec367

Browse files
committed
Set CI_RUN when running virtualenv downstream tests
1 parent 7bc82dd commit e8ec367

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2728,11 +2728,16 @@ def downstream_test_virtualenv(graalpy):
27282728
venv = src / 'venv'
27292729
mx.run([graalpy, '-m', 'venv', str(venv)])
27302730
env = os.environ.copy()
2731+
env.pop('VIRTUAL_ENV_DISABLE_PROMPT', None)
2732+
env['CI_RUN'] = '1'
27312733
# Need to avoid pulling in graalpy seeder
27322734
env['PIP_GRAALPY_DISABLE_PATCHING'] = '1'
27332735
run_in_venv(venv, ['pip', 'install', f'{src}[test]'], env=env)
27342736
# Don't activate the venv, it interferes with the test
2735-
mx.run( [str(venv / 'bin'/ 'pytest'), '-v', '--tb=short', 'tests'], cwd=src)
2737+
mx.run([
2738+
str(venv / 'bin' / 'pytest'), '-v', '--tb=short', 'tests',
2739+
'-k', 'not fish and not csh and not nushell and not powershell',
2740+
], cwd=src, env=env)
27362741

27372742

27382743
def run_downstream_test(args):

0 commit comments

Comments
 (0)