]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Make test.py work.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 14 Feb 2014 15:17:24 +0000 (15:17 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 14 Feb 2014 15:17:24 +0000 (15:17 +0000)
script/test.py

index 54601a6e7216d010c717d6a37e61f5ce8b84d255..c21e52ab548c1ebc2a0c44b4ca57cc996645d747 100755 (executable)
@@ -14,8 +14,10 @@ def main():
   if sys.platform == 'darwin':
     atom_shell = os.path.join(SOURCE_ROOT, 'out', 'Debug', 'Atom.app',
                               'Contents', 'MacOS', 'Atom')
-  else:
+  elif sys.platform == 'win32':
     atom_shell = os.path.join(SOURCE_ROOT, 'out', 'Debug', 'atom.exe')
+  else:
+    atom_shell = os.path.join(SOURCE_ROOT, 'out', 'Debug', 'atom')
 
   subprocess.check_call([atom_shell, 'spec'] + sys.argv[1:])