From c94bdd679431ff38152a862777411bcd31e2d872 Mon Sep 17 00:00:00 2001 From: Masahiro Wakame Date: Thu, 21 Nov 2013 12:08:25 +0900 Subject: [PATCH] Fix success or failed determine code bug currently implementation was erroneous decision, e.g. _infrastructure/tests/typescript/tsc.js not exists. --- _infrastructure/tests/runner.js | 2 +- _infrastructure/tests/runner.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_infrastructure/tests/runner.js b/_infrastructure/tests/runner.js index 5d025e234d..dd429bd208 100644 --- a/_infrastructure/tests/runner.js +++ b/_infrastructure/tests/runner.js @@ -691,7 +691,7 @@ var DefinitelyTyped; } Object.defineProperty(TestResult.prototype, "success", { get: function () { - return this.exitCode !== 1; + return this.exitCode === 0; }, enumerable: true, configurable: true diff --git a/_infrastructure/tests/runner.ts b/_infrastructure/tests/runner.ts index fb685ed44f..b0ad70a63a 100644 --- a/_infrastructure/tests/runner.ts +++ b/_infrastructure/tests/runner.ts @@ -139,7 +139,7 @@ module DefinitelyTyped.TestManager { exitCode:number; public get success():boolean { - return this.exitCode !== 1; + return this.exitCode === 0; } }