Skip to content

Commit

Permalink
Fix tests (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandrlevochkin authored Jan 29, 2024
1 parent 3d264d6 commit 47ad08d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions make.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ target.test = async function() {

// run the tests
var suiteType = options.suite || 'L0';
async function runTaskTests(taskName) {
async function runTaskTestsAsync(taskName) {
banner('Testing: ' + taskName);
// find the tests
var nodeVersion = options.node || getTaskNodeVersion(buildPath, taskName) + "";
Expand All @@ -276,15 +276,15 @@ target.test = async function() {
}

if (options.task) {
runTaskTests(options.task);
await runTaskTestsAsync(options.task);
} else {
// Run tests for each task that exists
taskList.forEach(function(taskName) {
for (var taskName of taskList) {
var taskPath = path.join(buildPath, taskName);
if (fs.existsSync(taskPath)) {
runTaskTests(taskName);
await runTaskTestsAsync(taskName);
}
});
}

banner('Running common library tests');
var commonLibPattern = path.join(buildPath, 'Common', '*', 'Tests', suiteType + '.js');
Expand Down

0 comments on commit 47ad08d

Please sign in to comment.