Skip to content

Commit 7b1a24a

Browse files
Merge pull request microsoft#4436 from emanuelquintero/users/jahquin/fixTestsNuGetV2
Fix NuGetCommand Pack tests
2 parents 719bfd7 + d36cd26 commit 7b1a24a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Tasks/NuGetCommand/Tests/L0.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ describe('NuGetCommand Suite', function () {
240240

241241
tr.run()
242242
assert(tr.invokedToolCount == 1, 'should have run NuGet once');
243-
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');
243+
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');
244244
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
245245
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
246246
assert(tr.succeeded, 'should have succeeded');
@@ -256,7 +256,7 @@ describe('NuGetCommand Suite', function () {
256256

257257
tr.run()
258258
assert(tr.invokedToolCount == 1, 'should have run NuGet once');
259-
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');
259+
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');
260260
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
261261
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
262262
assert(tr.succeeded, 'should have succeeded');
@@ -272,7 +272,7 @@ describe('NuGetCommand Suite', function () {
272272

273273
tr.run()
274274
assert(tr.invokedToolCount == 1, 'should have run NuGet once');
275-
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');
275+
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');
276276
assert(tr.stdOutContained('setting console code page'), 'it should have run chcp');
277277
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
278278
assert(tr.succeeded, 'should have succeeded');

Tasks/NuGetCommand/Tests/PackTests/packBuildNumber.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
2121
},
2222
"which": {},
2323
"exec": {
24-
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version 1.2.3": {
24+
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version 1.2.3": {
2525
"code": 0,
2626
"stdout": "NuGet output here",
2727
"stderr": ""

Tasks/NuGetCommand/Tests/PackTests/packEnvVar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
2222
},
2323
"which": {},
2424
"exec": {
25-
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version XX.YY.ZZ": {
25+
"c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version XX.YY.ZZ": {
2626
"code": 0,
2727
"stdout": "NuGet output here",
2828
"stderr": ""

Tasks/NuGetCommand/Tests/PackTests/packPrerelease.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ let a: ma.TaskLibAnswers = <ma.TaskLibAnswers>{
2424
},
2525
"which": {},
2626
"exec": {
27-
"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": {
27+
"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": {
2828
"code": 0,
2929
"stdout": "NuGet output here",
3030
"stderr": ""

0 commit comments

Comments
 (0)