mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 06:13:35 +02:00
fix: exit code with --shard and --parallel (#1883)
* fix: exit code with --shard and --parallel * fix: match existing argument-handling style in Shard
This commit is contained in:
committed by
GitHub
parent
1af74a215c
commit
aba2b79609
@@ -132,7 +132,13 @@ final class Shard implements AddsOutput, HandlesArguments, Terminable
|
||||
|
||||
$this->ensureFilterLengthIsSafe($filter);
|
||||
|
||||
return [...$arguments, '--filter', $filter];
|
||||
$arguments = [...$arguments, '--filter', $filter];
|
||||
|
||||
if ($this->hasArgument('--do-not-fail-on-empty-test-suite', $arguments) || $this->hasArgument('--fail-on-empty-test-suite', $arguments)) {
|
||||
return $arguments;
|
||||
}
|
||||
|
||||
return $this->pushArgument('--do-not-fail-on-empty-test-suite', $arguments);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user