Skip to content

Commit

Permalink
fix L0 cross plat test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Spillman committed Jun 14, 2017
1 parent cc78b8e commit b170ecc
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Tasks/DotNetCoreCLI/Tests/PackTests/packEnvVar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tmr.setInput('command', 'pack');
tmr.setInput('searchPatternPack', 'foo.nuspec');
tmr.setInput('outputDir', 'C:\\out\\dir');
tmr.setInput('versioningScheme', 'byEnvVar');
tmr.setInput('versionEnvVar', 'foobarVersionEnvVar');
tmr.setInput('versionEnvVar', 'FOOBARVERSIONENVVAR');

let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"osType": {},
Expand Down Expand Up @@ -44,7 +44,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
};
nmh.setAnswers(a);

process.env['foobarVersionEnvVar'] = 'XX.YY.ZZ'
process.env['FOOBARVERSIONENVVAR'] = 'XX.YY.ZZ'
nmh.registerNugetUtilityMock(["c:\\agent\\home\\directory\\foo.nuspec"]);
nmh.registerDefaultNugetVersionMock();
nmh.registerToolRunnerMock();
Expand Down
3 changes: 3 additions & 0 deletions Tasks/DotNetCoreCLI/Tests/PushTests/internalFeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"rmRF": {
"c:\\agent\\home\\directory\\NuGet_1": {
"success": true
},
"c:\\agent\\home\\directory/NuGet_1": {
"success": true
}
},
"findMatch": {
Expand Down
2 changes: 1 addition & 1 deletion Tasks/Npm/Tests/npm-failureDumpsLog-workingDir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tmr.mockNpmCommand('custom', {
code: -1,
stdout: 'some npm failure'
} as TaskLibAnswerExecResult);
tmr.answers.exist['C:\\mock\\workingDir\\npm-debug.log'] = true;
tmr.answers.exist[path.join("C:\\mock\\workingDir", "npm-debug.log")] = true;

let mockFs = require('fs');
tmr.registerMock('fs', mockFs);
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NuGetCommand/Tests/PackTests/packEnvVar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tmr.setInput('searchPatternPack', 'foo.nuspec');
tmr.setInput('outputDir', 'C:\\out\\dir');
tmr.setInput('command', 'pack');
tmr.setInput('versioningScheme', 'byEnvVar');
tmr.setInput('versionEnvVar', 'foobarVersionEnvVar');
tmr.setInput('versionEnvVar', 'FOOBARVERSIONENVVAR');

let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
"osType": {},
Expand Down Expand Up @@ -42,7 +42,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
};
nmh.setAnswers(a);

process.env['foobarVersionEnvVar'] = 'XX.YY.ZZ'
process.env['FOOBARVERSIONENVVAR'] = 'XX.YY.ZZ'
nmh.registerNugetUtilityMock(["c:\\agent\\home\\directory\\foo.nuspec"]);
nmh.registerDefaultNugetVersionMock();
nmh.registerToolRunnerMock();
Expand Down
2 changes: 1 addition & 1 deletion Tasks/NuGetCommand/Tests/PublishTests/externalFeedNuGet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
};
nmh.setAnswers(a);

process.env["NuGet_ForceNuGetForPush"] = "true";
process.env["NUGET_FORCENUGETFORPUSH"] = "true";
nmh.registerNugetUtilityMock(["c:\\agent\\home\\directory\\foo.nupkg"]);
nmh.registerDefaultNugetVersionMock();
nmh.registerToolRunnerMock();
Expand Down
2 changes: 1 addition & 1 deletion Tasks/NuGetCommand/Tests/PublishTests/internalFeedNuGet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
};
nmh.setAnswers(a);

process.env["NuGet_ForceNuGetForPush"] = "true";
process.env["NUGET_FORCENUGETFORPUSH"] = "true";
nmh.registerNugetUtilityMock(["c:\\agent\\home\\directory\\foo.nupkg"]);
nmh.registerDefaultNugetVersionMock();
nmh.registerToolRunnerMock();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
};
nmh.setAnswers(a);

process.env["NuGet_ForceVstsNuGetPushForPush"] = "true";
process.env["NUGET_FORCEVSTSNUGETPUSHFORPUSH"] = "true";
nmh.registerNugetUtilityMock(["c:\\agent\\home\\directory\\foo.nupkg"]);
nmh.registerDefaultNugetVersionMock();
nmh.registerToolRunnerMock();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
};
nmh.setAnswers(a);

process.env["NuGet_ForceVstsNuGetPushForPush"] = "true";
process.env["NUGET_FORCEVSTSNUGETPUSHFORPUSH"] = "true";
nmh.registerNugetUtilityMock(["c:\\agent\\home\\directory\\foo.nupkg"]);
nmh.registerDefaultNugetVersionMock();
nmh.registerToolRunnerMock();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
};
nmh.setAnswers(a);

process.env["NuGet_ForceVstsNuGetPushForPush"] = "true";
process.env["NUGET_FORCEVSTSNUGETPUSHFORPUSH"] = "true";
nmh.registerNugetUtilityMock(["c:\\agent\\home\\directory\\foo.nupkg"]);
nmh.registerDefaultNugetVersionMock();
nmh.registerToolRunnerMock();
Expand Down

0 comments on commit b170ecc

Please sign in to comment.