Fix setting xdebug.mode

This commit is contained in:
Shivam Mathur
2020-12-17 20:49:20 +05:30
parent 8862a73fdd
commit d74064b67a
9 changed files with 21 additions and 25 deletions

5
dist/index.js vendored
View File

@ -2337,9 +2337,8 @@ const config = __importStar(__webpack_require__(641));
async function addCoverageXdebug(extension, version, os_version, pipe) {
const xdebug = (await extensions.addExtension(extension, version, os_version, true)) +
pipe;
const ini = await config.addINIValues('xdebug.mode=coverage', os_version, true);
const log = await utils.addLog('$tick', extension, 'Xdebug enabled as coverage driver', os_version);
return [xdebug, ini, log].join('\n');
return xdebug + '\n' + log;
}
exports.addCoverageXdebug = addCoverageXdebug;
/**
@ -2474,7 +2473,7 @@ async function addINIValuesUnix(ini_values_csv) {
});
return ('echo "' +
ini_values.join('\n') +
'" | sudo tee -a "${ini_file[@]}" >/dev/null 2>&1' +
'" | sudo tee -a "${pecl_file:-${ini_file[@]}}" >/dev/null 2>&1' +
script);
}
exports.addINIValuesUnix = addINIValuesUnix;