• R/O
  • SSH

libctools: Commit

This library contains code that extends and simplifies different operations
for C language based programs.


Commit MetaInfo

Revisión64dd1246b938946f7f54b652cafb670760c50caf (tree)
Tiempo2017-02-22 01:14:54
Autors.gusarov
Commiters.gusarov

Log Message

Tests on windows: Fixed warnings in runners

Cambiar Resumen

Diferencia incremental

diff -r 0733caa89cc9 -r 64dd1246b938 tests/generate_runners.py
--- a/tests/generate_runners.py Tue Feb 21 18:34:44 2017 +0300
+++ b/tests/generate_runners.py Tue Feb 21 19:14:54 2017 +0300
@@ -72,7 +72,13 @@
7272 #print('relativePath = ' + relativePath)
7373
7474 fullFileName = os.path.join(dirPath, fileName)
75- #print('fullFileName = '+ fullFileName)
75+
76+ if sys.platform == 'win32':
77+ cFullFileName = fullFileName.replace('\\', '\\\\')
78+ else:
79+ cFullFileName = fullFileName
80+
81+ #print('cfullFileName = '+ cfullFileName)
7682
7783 justFileName = os.path.splitext(fileName)[0]
7884 #print('justFileName = '+ justFileName)
@@ -86,6 +92,6 @@
8692 runnerInDir = os.path.join(runnerInDir, runnerFileName)
8793 #print('runnerInDir = '+ runnerInDir)
8894
89- subprocess.check_call('ruby ' + kGeneratorScript() + ' ' + fullFileName + ' ' + runnerInDir, shell = True)
95+ subprocess.check_call('ruby ' + kGeneratorScript() + ' ' + cFullFileName + ' ' + runnerInDir, shell = True)
9096
9197 main()
Show on old repository browser