Skip to content

Commit

Permalink
fix linter script (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
olydis authored Jul 18, 2017
1 parent 124bde6 commit 9556a73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ describe('AutoRest Linter validation:', function () {
// return (item.match(/.Microsoft.ContainerRegistry.*2017-03-01.*/ig) !== null);
// });
for (const config of configsToProcess) {
it(config + ' should honor linter validation rules.', async function (done) {
it(config + ' should honor linter validation rules.', async function () {
var cmd = `autorest --validation --azure-validator ${config} --message-format=json`;
console.log(`Executing: ${cmd}`);
let result;
try {
result = execSync(cmd, { encoding: 'utf8' });
} catch (err) {
throw new Error('AutoRest Linter validation failed.');
console.dir(err, {depth: null, colors: true});
throw err;
}
});
}
Expand Down

0 comments on commit 9556a73

Please sign in to comment.