From: Cheng Zhao Date: Thu, 12 Nov 2015 15:02:39 +0000 (+0800) Subject: spec: Disable old APIs in tests X-Git-Tag: v0.35.0~15^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ce6a7c7d088eb0dc387a99c6ed74fd9ee839a0eb;p=electron.git spec: Disable old APIs in tests --- diff --git a/script/test.py b/script/test.py index 28aeac9d..7f75d311 100755 --- a/script/test.py +++ b/script/test.py @@ -16,6 +16,9 @@ PRODUCT_NAME = atom_gyp()['product_name%'] def main(): os.chdir(SOURCE_ROOT) + # Disable old APIs + os.environ['ELECTRON_HIDE_INTERNAL_MODULES'] = 'true' + config = 'D' if len(sys.argv) == 2 and sys.argv[1] == '-R': config = 'R'