checkExitCode method

Future<bool> checkExitCode([
  1. int expectedExitCode = 0
])

Returns true if exitCode matches expectedExitCode.

Implementation

Future<bool> checkExitCode([int expectedExitCode = 0]) async {
  var exitCode = await this.exitCode;
  var ok = exitCode == expectedExitCode;
  return ok;
}