Skip to content

Commit

Permalink
passed idc (#7525)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyasRmsft authored Jun 20, 2018
1 parent da9f3db commit 9cf6210
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Tasks/VsTestV2/nondistributedtest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ const runSettingsExt = '.runsettings';
const testSettingsExt = '.testsettings';
const sourceFilter = tl.getDelimitedInput('testAssemblyVer2', '\n', true);

const inputDataContract: InputDataContract = undefined;
let inputDataContract: InputDataContract = undefined;
let testAssemblyFiles = undefined;

export function runNonDistributedTest() {
export function runNonDistributedTest(idc: InputDataContract) {
try {

console.log(tl.loc('runTestsLocally', 'vstest.console.exe'));
console.log('========================================================');

inputDataContract = idc;

testAssemblyFiles = getTestAssemblies();
if (!testAssemblyFiles || testAssemblyFiles.length === 0) {
console.log('##vso[task.logissue type=warning;code=002004;]');
Expand Down
2 changes: 1 addition & 1 deletion Tasks/VsTestV2/runvstest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if (osPlat !== 'win32') {
if (inputDataContract.ExecutionSettings
&& inputDataContract.ExecutionSettings.RerunSettings
&& inputDataContract.ExecutionSettings.RerunSettings.RerunFailedTests) {
nondistributedtest.runNonDistributedTest();
nondistributedtest.runNonDistributedTest(inputDataContract);
} else {
localtest.startTest();
}
Expand Down
2 changes: 1 addition & 1 deletion Tasks/VsTestV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"version": {
"Major": 2,
"Minor": 137,
"Patch": 3
"Patch": 4
},
"demands": [
"vstest"
Expand Down
2 changes: 1 addition & 1 deletion Tasks/VsTestV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"version": {
"Major": 2,
"Minor": 137,
"Patch": 3
"Patch": 4
},
"demands": [
"vstest"
Expand Down

0 comments on commit 9cf6210

Please sign in to comment.