Skip to content

Commit

Permalink
Partial revert of "Fix wrong exit status (linkedin#338)"
Browse files Browse the repository at this point in the history
  • Loading branch information
ravimandala committed Sep 26, 2019
1 parent 27e247f commit 2fc30a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion bp/src/Bluepill.m
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,9 @@ - (void)finishWithContext:(BPExecutionContext *)context {
if (![self hasRemainingTestsInContext:context] && (context.attemptNumber <= [context.config.errorRetriesCount integerValue])) {
[BPUtils printInfo:INFO withString:@"No more tests to run."];
[BPUtils printInfo:INFO withString:@"%s:%d finalExitStatus = %@", __FILE__, __LINE__, [BPExitStatusHelper stringFromExitStatus:self.finalExitStatus]];
self.finalExitStatus = context.exitStatus;
// TODO: Temporarily disabling the fix from PR#338 while the issue is being investigated
// self.finalExitStatus = context.exitStatus;
self.finalExitStatus = context.finalExitStatus | context.exitStatus;
self.exitLoop = YES;
return;
}
Expand Down
5 changes: 3 additions & 2 deletions bp/tests/BluepillTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ - (void)testReportWithAppCrashingAndRetryOnlyFailedTestsSet {
[self assertGotReport:junitReportPath isEqualToWantReport:expectedFilePath];
}

- (void)testAppCrashingAndRetryReportsCorrectExitCode {
// TODO: Enable this while re-enabling the fix from PR#338
- (void)DISABLE_testAppCrashingAndRetryReportsCorrectExitCode {
NSString *testBundlePath = [BPTestHelper sampleAppCrashingTestsBundlePath];
self.config.testBundlePath = testBundlePath;
NSString *tempDir = NSTemporaryDirectory();
Expand Down Expand Up @@ -416,7 +417,7 @@ - (void)testKeepSimulatorWithAppCrashingTestsSet {
}

//simulator shouldn't be kept in this case
- (void)testKeepSimulatorWithAppHaningTestsSet {
- (void)testKeepSimulatorWithAppHangingTestsSet {
NSString *testBundlePath = [BPTestHelper sampleAppHangingTestsBundlePath];
self.config.testBundlePath = testBundlePath;
self.config.keepSimulator = YES;
Expand Down

0 comments on commit 2fc30a2

Please sign in to comment.