@@ -198,9 +198,9 @@ abstract class ProcessUtils {
198
198
/// When [throwOnError] is `true` , if the child process finishes with a non-zero
199
199
/// exit code, a [ProcessException] is thrown.
200
200
///
201
- /// If [throwOnError] is `true` , and [whiteListFailures ] is supplied,
201
+ /// If [throwOnError] is `true` , and [allowedFailures ] is supplied,
202
202
/// a [ProcessException] is only thrown on a non-zero exit code if
203
- /// [whiteListFailures ] returns false when passed the exit code.
203
+ /// [allowedFailures ] returns false when passed the exit code.
204
204
///
205
205
/// When [workingDirectory] is set, it is the working directory of the child
206
206
/// process.
@@ -219,7 +219,7 @@ abstract class ProcessUtils {
219
219
Future <RunResult > run (
220
220
List <String > cmd, {
221
221
bool throwOnError = false ,
222
- RunResultChecker whiteListFailures ,
222
+ RunResultChecker allowedFailures ,
223
223
String workingDirectory,
224
224
bool allowReentrantFlutter = false ,
225
225
Map <String , String > environment,
@@ -231,7 +231,7 @@ abstract class ProcessUtils {
231
231
RunResult runSync (
232
232
List <String > cmd, {
233
233
bool throwOnError = false ,
234
- RunResultChecker whiteListFailures ,
234
+ RunResultChecker allowedFailures ,
235
235
bool hideStdout = false ,
236
236
String workingDirectory,
237
237
Map <String , String > environment,
@@ -292,7 +292,7 @@ class _DefaultProcessUtils implements ProcessUtils {
292
292
Future <RunResult > run (
293
293
List <String > cmd, {
294
294
bool throwOnError = false ,
295
- RunResultChecker whiteListFailures ,
295
+ RunResultChecker allowedFailures ,
296
296
String workingDirectory,
297
297
bool allowReentrantFlutter = false ,
298
298
Map <String , String > environment,
@@ -318,7 +318,7 @@ class _DefaultProcessUtils implements ProcessUtils {
318
318
final RunResult runResult = RunResult (results, cmd);
319
319
_logger.printTrace (runResult.toString ());
320
320
if (throwOnError && runResult.exitCode != 0 &&
321
- (whiteListFailures == null || ! whiteListFailures (runResult.exitCode))) {
321
+ (allowedFailures == null || ! allowedFailures (runResult.exitCode))) {
322
322
runResult.throwException ('Process exited abnormally:\n $runResult ' );
323
323
}
324
324
return runResult;
@@ -382,7 +382,7 @@ class _DefaultProcessUtils implements ProcessUtils {
382
382
if (exitCode != null ) {
383
383
_logger.printTrace (runResult.toString ());
384
384
if (throwOnError && runResult.exitCode != 0 &&
385
- (whiteListFailures == null || ! whiteListFailures (exitCode))) {
385
+ (allowedFailures == null || ! allowedFailures (exitCode))) {
386
386
runResult.throwException ('Process exited abnormally:\n $runResult ' );
387
387
}
388
388
return runResult;
@@ -407,7 +407,7 @@ class _DefaultProcessUtils implements ProcessUtils {
407
407
RunResult runSync (
408
408
List <String > cmd, {
409
409
bool throwOnError = false ,
410
- RunResultChecker whiteListFailures ,
410
+ RunResultChecker allowedFailures ,
411
411
bool hideStdout = false ,
412
412
String workingDirectory,
413
413
Map <String , String > environment,
@@ -424,8 +424,8 @@ class _DefaultProcessUtils implements ProcessUtils {
424
424
_logger.printTrace ('Exit code ${runResult .exitCode } from: ${cmd .join (' ' )}' );
425
425
426
426
bool failedExitCode = runResult.exitCode != 0 ;
427
- if (whiteListFailures != null && failedExitCode) {
428
- failedExitCode = ! whiteListFailures (runResult.exitCode);
427
+ if (allowedFailures != null && failedExitCode) {
428
+ failedExitCode = ! allowedFailures (runResult.exitCode);
429
429
}
430
430
431
431
if (runResult.stdout.isNotEmpty && ! hideStdout) {
0 commit comments