Debugging output.py
This commit is contained in:
parent
4fc0c8f80e
commit
8e79994974
|
@ -179,7 +179,7 @@ test_script:
|
|||
If ($env:SQL_INSTANCE -Match "SQL2016") {
|
||||
"Running phpt tests via OpenCppCoverage..."
|
||||
$ext_dir = ${env:PHP_SDK_DIR} + "\php-" + ${env:PHP_VERSION} + "-src\ext";
|
||||
OpenCppCoverage.exe --sources $ext_dir\pdo_sqlsrv --sources $ext_dir\sqlsrv --modules *sqlsrv*.dll --export_type=cobertura:${env:PHP_INSTALL_DIR}\coverage.xml --cover_children --quiet --continue_after_cpp_exception --optimized_build -- .\php.exe .\run-tests.php -P ${env:APPVEYOR_BUILD_FOLDER}\test\functional\ > ${env:APPVEYOR_BUILD_FOLDER}\test\functional\sqlsrvtests.log 2>&1
|
||||
OpenCppCoverage.exe --sources $ext_dir\pdo_sqlsrv --sources $ext_dir\sqlsrv --modules *sqlsrv*.dll --export_type=cobertura:.\coverage.xml --cover_children --quiet --continue_after_cpp_exception --optimized_build -- .\php.exe .\run-tests.php -P ${env:APPVEYOR_BUILD_FOLDER}\test\functional\ > ${env:APPVEYOR_BUILD_FOLDER}\test\functional\sqlsrvtests.log 2>&1
|
||||
type ${env:APPVEYOR_BUILD_FOLDER}\test\functional\sqlsrvtests.log;
|
||||
ls *.xml
|
||||
} Else {
|
||||
|
|
|
@ -38,6 +38,7 @@ def returnCount(var):
|
|||
# path - path of the file.
|
||||
# Output: null
|
||||
def readAndPrint(inputStr, file, path):
|
||||
print(path)
|
||||
filn = open(path + os.sep + file).readlines()
|
||||
for lines in filn:
|
||||
if inputStr in lines:
|
||||
|
@ -50,6 +51,8 @@ def TestFilename(line):
|
|||
terminateChar = os.sep
|
||||
currentPos = 0
|
||||
firstpos = len(line) * -1
|
||||
print(line)
|
||||
print(firstpos)
|
||||
while True:
|
||||
currentPos = currentPos - 1
|
||||
# if passed the first pos, stop
|
||||
|
|
Loading…
Reference in a new issue