return non-zero exit code when testrun produces an error (fixes #66218)

This commit is contained in:
Benjamin Pasero 2019-01-08 17:41:54 +01:00
parent 527b6628e6
commit 5a892a6450

View file

@ -596,7 +596,7 @@ export class ExtHostExtensionService implements ExtHostExtensionServiceShape {
}
// after tests have run, we shutdown the host
this._gracefulExit(failures && failures > 0 ? 1 /* ERROR */ : 0 /* OK */);
this._gracefulExit(error || (typeof failures === 'number' && failures > 0) ? 1 /* ERROR */ : 0 /* OK */);
});
});
}