Better test name regex (#3084)
* Fix accumulating test args * Better test name regex
This commit is contained in:
Родитель
bbf76e539d
Коммит
7ed1fb42f8
|
@ -437,7 +437,7 @@ export class CTestDriver implements vscode.Disposable {
|
|||
private async runCTestImpl(driver: CMakeDriver, ctestPath: string, ctestArgs: string[], testName: string, customizedTask: boolean = false, consumer?: proc.OutputConsumer): Promise<CTestResults | undefined> {
|
||||
const child = driver.executeCommand(
|
||||
ctestPath,
|
||||
ctestArgs.concat('-R', testName),
|
||||
ctestArgs.concat('-R', `^${util.escapeStringForRegex(testName)}\$`),
|
||||
((customizedTask && consumer) ? consumer : new CTestOutputLogger()),
|
||||
{ environment: await driver.getCTestCommandEnvironment(), cwd: driver.binaryDir });
|
||||
const res = await child.result;
|
||||
|
|
Загрузка…
Ссылка в новой задаче