spec: Disable old APIs in tests
authorCheng Zhao <zcbenz@gmail.com>
Thu, 12 Nov 2015 15:02:39 +0000 (23:02 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 12 Nov 2015 15:02:39 +0000 (23:02 +0800)
script/test.py

index 28aeac9..7f75d31 100755 (executable)
@@ -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'