Skip to content

Commit

Permalink
Fix NuGetCommand Pack tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelquintero committed May 31, 2017
1 parent 56a2903 commit d36cd26
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Tasks/NuGetCommand/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ describe('NuGetCommand Suite', function () {

tr.run()
assert(tr.invokedToolCount == 1, 'should have run NuGet once');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version x.y.z-CI-YYYYMMDD-HHMMSS'), 'it should have run NuGet');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version x.y.z-CI-YYYYMMDD-HHMMSS'), 'it should have run NuGet');
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
assert(tr.succeeded, 'should have succeeded');
Expand All @@ -256,7 +256,7 @@ describe('NuGetCommand Suite', function () {

tr.run()
assert(tr.invokedToolCount == 1, 'should have run NuGet once');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version XX.YY.ZZ'), 'it should have run NuGet');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version XX.YY.ZZ'), 'it should have run NuGet');
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
assert(tr.succeeded, 'should have succeeded');
Expand All @@ -272,7 +272,7 @@ describe('NuGetCommand Suite', function () {

tr.run()
assert(tr.invokedToolCount == 1, 'should have run NuGet once');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version 1.2.3'), 'it should have run NuGet');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version 1.2.3'), 'it should have run NuGet');
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
assert(tr.succeeded, 'should have succeeded');
Expand Down
2 changes: 1 addition & 1 deletion Tasks/NuGetCommand/Tests/PackTests/packBuildNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
},
"which": {},
"exec": {
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version 1.2.3": {
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version 1.2.3": {
"code": 0,
"stdout": "NuGet output here",
"stderr": ""
Expand Down
2 changes: 1 addition & 1 deletion Tasks/NuGetCommand/Tests/PackTests/packEnvVar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
},
"which": {},
"exec": {
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version XX.YY.ZZ": {
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version XX.YY.ZZ": {
"code": 0,
"stdout": "NuGet output here",
"stderr": ""
Expand Down
2 changes: 1 addition & 1 deletion Tasks/NuGetCommand/Tests/PackTests/packPrerelease.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
},
"which": {},
"exec": {
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version x.y.z-CI-YYYYMMDD-HHMMSS": {
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version x.y.z-CI-YYYYMMDD-HHMMSS": {
"code": 0,
"stdout": "NuGet output here",
"stderr": ""
Expand Down

0 comments on commit d36cd26

Please sign in to comment.