refactor: use env var to skip native module tests on win32/debug (#13890)

This commit is contained in:
Jeremy Apthorp 2018-07-31 20:33:13 -07:00 committed by Samuel Attard
parent 4990b3990b
commit a4f02724bf
2 changed files with 3 additions and 1 deletions

View file

@ -55,6 +55,8 @@ def main():
electron = os.path.join(SOURCE_ROOT, 'out', config,
'{0}.exe'.format(PROJECT_NAME))
resources_path = os.path.join(SOURCE_ROOT, 'out', config)
if config != 'R':
os.environ['ELECTRON_SKIP_NATIVE_MODULE_TESTS'] = '1'
else:
electron = os.path.join(SOURCE_ROOT, 'out', config, PROJECT_NAME)
resources_path = os.path.join(SOURCE_ROOT, 'out', config)