linux: Make test.py work.

This commit is contained in:
Cheng Zhao 2014-02-14 15:17:24 +00:00
parent 2b7b4a16f5
commit d698ecf017

View file

@ -14,8 +14,10 @@ def main():
if sys.platform == 'darwin': if sys.platform == 'darwin':
atom_shell = os.path.join(SOURCE_ROOT, 'out', 'Debug', 'Atom.app', atom_shell = os.path.join(SOURCE_ROOT, 'out', 'Debug', 'Atom.app',
'Contents', 'MacOS', 'Atom') 'Contents', 'MacOS', 'Atom')
else: elif sys.platform == 'win32':
atom_shell = os.path.join(SOURCE_ROOT, 'out', 'Debug', 'atom.exe') 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:]) subprocess.check_call([atom_shell, 'spec'] + sys.argv[1:])