提交 62632116 编写于 作者: mysterywolf's avatar mysterywolf

[CI]修复脚本语法错误,解决CI报警

上级 6f32f7ca
...@@ -17,7 +17,7 @@ if CROSS_TOOL == 'gcc': ...@@ -17,7 +17,7 @@ if CROSS_TOOL == 'gcc':
PLATFORM = 'gcc' PLATFORM = 'gcc'
EXEC_PATH = r'/usr/bin' EXEC_PATH = r'/usr/bin'
else: else:
print 'Please make sure your toolchains is GNU GCC!' print ('Please make sure your toolchains is GNU GCC!')
exit(0) exit(0)
if os.getenv('RTT_EXEC_PATH'): if os.getenv('RTT_EXEC_PATH'):
......
...@@ -30,7 +30,7 @@ if rtconfig.CROSS_TOOL == 'gcc': ...@@ -30,7 +30,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
print('build M0 code first') print('build M0 code first')
if sys.platform.startswith('linux'): if sys.platform.startswith('linux'):
import glob import glob
ocwd = os.getcwdu() ocwd = os.getcwd()
os.chdir('../M0') os.chdir('../M0')
res = os.system('scons') res = os.system('scons')
if res: if res:
...@@ -41,7 +41,7 @@ if rtconfig.CROSS_TOOL == 'gcc': ...@@ -41,7 +41,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
os.chdir(ocwd) os.chdir(ocwd)
else: else:
# Assume Windows. # Assume Windows.
ocwd = os.getcwdu() ocwd = os.getcwd()
os.chdir('..\M0') os.chdir('..\M0')
os.system('scons.bat') os.system('scons.bat')
os.chdir(ocwd) os.chdir(ocwd)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册