Skip to content

Commit 596f14e

Browse files
committed
Allow testing release build
1 parent 44d0bce commit 596f14e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

script/test.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@
1111
def main():
1212
os.chdir(SOURCE_ROOT)
1313

14+
config = 'D'
15+
if len(sys.argv) == 2 and sys.argv[1] == '-R':
16+
config = 'R'
17+
1418
if sys.platform == 'darwin':
15-
atom_shell = os.path.join(SOURCE_ROOT, 'out', 'D', 'Atom.app',
19+
atom_shell = os.path.join(SOURCE_ROOT, 'out', config, 'Atom.app',
1620
'Contents', 'MacOS', 'Atom')
1721
elif sys.platform == 'win32':
18-
atom_shell = os.path.join(SOURCE_ROOT, 'out', 'D', 'atom.exe')
22+
atom_shell = os.path.join(SOURCE_ROOT, 'out', config, 'atom.exe')
1923
else:
20-
atom_shell = os.path.join(SOURCE_ROOT, 'out', 'D', 'atom')
24+
atom_shell = os.path.join(SOURCE_ROOT, 'out', config, 'atom')
2125

2226
subprocess.check_call([atom_shell, 'spec'] + sys.argv[1:])
2327

0 commit comments

Comments
 (0)