Skip to content

Commit ce79e57

Browse files
committed
transcom param added to autotest
1 parent e217898 commit ce79e57

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

transcrypt/development/continuous_integration/run.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ chmod -R 777 .
2020

2121
export PATH=$PATH:./transcrypt
2222

23-
# Create alias for python
24-
25-
alias py39='python'
26-
2723
# Run the shipment test
2824

29-
python ./transcrypt/development/shipment/shipment_test.py --unattended
25+
python ./transcrypt/development/shipment/shipment_test.py --unattended --transcom python

transcrypt/development/shipment/shipment_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def __init__ (self):
2424
self.argParser.add_argument ('-b', '--blind', help = 'don\'t start browser', action = 'store_true')
2525

2626
self.argParser.add_argument ('-u', '--unattended', help = 'unattended mode', action = 'store_true')
27+
self.argParser.add_argument ('-t', '--transcom', help = 'transpile command')
2728

2829
self.__dict__.update (self.argParser.parse_args () .__dict__)
2930

@@ -125,7 +126,7 @@ def open (self, url, run):
125126
shipDir = os.path.dirname (os.path.abspath (__file__)) .replace ('\\', '/')
126127
appRootDir = '/'.join (shipDir.split ('/')[ : -2])
127128

128-
transpileCommand = 'ts' if commandArgs.inst else f'/{appRootDir}/ts'
129+
transpileCommand = commandArgs.transcom if commandArgs.transcom else 'ts' if commandArgs.inst else f'/{appRootDir}/ts'
129130

130131
print (f'\nApplication root directory: {appRootDir}\n')
131132

0 commit comments

Comments
 (0)