@@ -95,7 +95,6 @@ Future<void> runCommand(String executable, List<String> arguments, {
|
||||
OutputMode outputMode = OutputMode.print,
|
||||
CapturedOutput output,
|
||||
bool skip = false,
|
||||
bool expectFlaky = false,
|
||||
bool Function(String) removeLine,
|
||||
}) async {
|
||||
assert((outputMode == OutputMode.capture) == (output != null),
|
||||
@@ -145,10 +144,6 @@ Future<void> runCommand(String executable, List<String> arguments, {
|
||||
output.stderr = _flattenToString(await savedStderr);
|
||||
}
|
||||
|
||||
// If the test is flaky we don't care about the actual exit.
|
||||
if (expectFlaky)
|
||||
return;
|
||||
|
||||
if ((exitCode == 0) == expectNonZeroExit || (expectedExitCode != null && exitCode != expectedExitCode)) {
|
||||
if (failureMessage != null) {
|
||||
print(failureMessage);
|
||||
|
||||
Reference in New Issue
Block a user