From 0fbeeac8b1f9c8aef99e9eae9d78529ed3b0364b Mon Sep 17 00:00:00 2001 From: Ashutosh Varma Date: Fri, 20 Mar 2020 20:21:22 +0530 Subject: [PATCH] fix ctest no tests found error --- dist/index.js | 2 +- src/cmake_runner.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 1915fdf..1ada2fc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1065,7 +1065,7 @@ class CMakeRunner { ...this._options.extraArgs.extraTestArgs.split(' ') ]; } - const result = this.ctest(execOptions); + const result = yield this.ctest(execOptions); process.chdir(pwdCurrent); return result; }); diff --git a/src/cmake_runner.ts b/src/cmake_runner.ts index e6ad045..990c826 100644 --- a/src/cmake_runner.ts +++ b/src/cmake_runner.ts @@ -109,7 +109,7 @@ export class CMakeRunner { ...this._options.extraArgs.extraTestArgs.split(' ') ] } - const result: Promise = this.ctest(execOptions) + const result: number = await this.ctest(execOptions) process.chdir(pwdCurrent) return result }