Fixed failing task tests

This commit is contained in:
Dirk Baeumer
2017-09-18 08:37:37 +02:00
parent 321cec5618
commit 3339ad83f1
@@ -122,7 +122,7 @@ class CommandConfigurationBuilder {
runtime: Tasks.RuntimeType.Process,
args: [],
options: {
cwd: '${workspaceRoot}'
cwd: '${workspaceFolder}'
},
presentation: this.presentationBuilder.result,
suppressTaskName: false
@@ -243,7 +243,7 @@ class ProblemMatcherBuilder {
applyTo: ApplyToKind.allDocuments,
severity: undefined,
fileLocation: FileLocationKind.Relative,
filePrefix: '${cwd}',
filePrefix: '${workspaceFolder}',
pattern: undefined
};
}
@@ -726,7 +726,7 @@ suite('Tasks version 0.1.0', () => {
task('tsc', 'tsc').
group(Tasks.TaskGroup.Build).
command().suppressTaskName(true).
options({ cwd: '${workspaceRoot}', env: { key: 'value' } });
options({ cwd: '${workspaceFolder}', env: { key: 'value' } });
testConfiguration(
{
version: '0.1.0',
@@ -1589,7 +1589,7 @@ suite('Bugs / regression tests', () => {
windows: {
command: 'powershell',
options: {
cwd: '${workspaceRoot}'
cwd: '${workspaceFolder}'
},
tasks: [
{
@@ -1612,7 +1612,7 @@ suite('Bugs / regression tests', () => {
osx: {
command: '/bin/bash',
options: {
cwd: '${workspaceRoot}'
cwd: '${workspaceFolder}'
},
tasks: [
{
@@ -1633,14 +1633,14 @@ suite('Bugs / regression tests', () => {
builder.task('composeForDebug', 'powershell').
command().suppressTaskName(true).
args(['-ExecutionPolicy', 'RemoteSigned', '.\\dockerTask.ps1', '-ComposeForDebug', '-Environment', 'debug']).
options({ cwd: '${workspaceRoot}' }).
options({ cwd: '${workspaceFolder}' }).
presentation().echo(true).reveal(Tasks.RevealKind.Always);
testConfiguration(external, builder);
} else if (Platform.isMacintosh) {
builder.task('composeForDebug', '/bin/bash').
command().suppressTaskName(true).
args(['-c', './dockerTask.sh composeForDebug debug']).
options({ cwd: '${workspaceRoot}' }).
options({ cwd: '${workspaceFolder}' }).
presentation().reveal(Tasks.RevealKind.Always);
testConfiguration(external, builder);
}