Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release-candidate' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Verkoeyen committed Jul 25, 2016
2 parents 671ddf3 + 3126aa5 commit 6f60d28
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# 3.0.7

* Resolved bug in which a failed unit test on Xcode 8 betas would cause arc unit to hang.

# 3.0.6

* Workaround for bug in Xcode 8 betas 1 and 2 that cause `arc unit`.
* Workaround for bug in Xcode 8 betas 1 and 2 that cause `arc unit` to hang.

# 3.0.5

Expand Down
10 changes: 7 additions & 3 deletions engine/XcodeUnitTestEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private function xcodeMajorVersion() {
return null;
}

public function execFutureEndOnLine($future, $line) {
public function execFutureEndOnLine($future, $stdoutline, $stderrline) {
$wait = $future->getDefaultWait();
$hasSeenLine = false;
do {
Expand All @@ -130,7 +130,8 @@ public function execFutureEndOnLine($future, $line) {
}

$pipes = $future->read();
if (!$hasSeenLine && strpos($pipes[0], $line) !== false) {
if (!$hasSeenLine && (strpos($pipes[0], $stdoutline) !== false
|| strpos($pipes[1], $stderrline) !== false)) {
$hasSeenLine = true;

} else if ($hasSeenLine && empty($pipes[0])) {
Expand Down Expand Up @@ -175,7 +176,10 @@ public function run() {
$this->xcodebuildBinary, implode(' ', $xcodeargs));

list($builderror, $xcbuild_stdout, $xcbuild_stderr) =
$this->execFutureEndOnLine($future, "** TEST EXECUTE SUCCEEDED **");
$this->execFutureEndOnLine($future,
"** TEST EXECUTE SUCCEEDED **",
"** TEST EXECUTE FAILED **"
);
}

} else {
Expand Down

0 comments on commit 6f60d28

Please sign in to comment.