File tree Expand file tree Collapse file tree
Bluepill-cli/Bluepill-cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232
3333- (void )onOutputReceived : (NSString *)output ;
3434
35+ - (void )setParserStateCompleted ;
36+
3537@end
3638
3739@protocol BPMonitorCallbackProtocol <NSObject >
Original file line number Diff line number Diff line change 5858- (void )completedFinalRun ;
5959- (void )cleanup ;
6060- (nullable NSString *)generateLog : (nonnull id <BPReporter>)reporter ;
61+ - (void )setParserStateCompleted ;
6162
6263@end
Original file line number Diff line number Diff line change 2929
3030- (void )createSimulatorWithDeviceName : (NSString *)deviceName completion : (void (^)(NSError *))completion ;
3131
32+ - (void )setParserStateCompleted ;
33+
3234- (BOOL )useSimulatorWithDeviceUDID : (NSUUID *)deviceUDID ;
3335
3436- (BOOL )uninstallApplicationAndReturnError : (NSError **)error ;
Original file line number Diff line number Diff line change @@ -358,6 +358,7 @@ - (void)launchApplicationAndExecuteTestsWithParser:(BPTreeParser *)parser andCom
358358 });
359359 dispatch_source_set_cancel_handler (source, ^{
360360 blockSelf.monitor .appState = Completed;
361+ [parser.delegate setParserStateCompleted ];
361362 // Post a APPCLOSED signal to the fifo
362363 [blockSelf.stdOutHandle writeData: [@" \n BP_APP_PROC_ENDED\n " dataUsingEncoding: NSUTF8StringEncoding]];
363364 });
@@ -470,4 +471,7 @@ - (NSDictionary *)appInfo:(NSString *)bundleID error:(NSError **)error {
470471 return appInfo;
471472}
472473
474+ - (void )setParserStateCompleted {
475+ }
476+
473477@end
Original file line number Diff line number Diff line change @@ -191,7 +191,6 @@ - (void)onTestSuiteEnded:(NSString *)testSuiteName
191191- (void )onOutputReceived : (NSString *)output {
192192 NSDate *currentTime = [NSDate date ];
193193
194- assert (self.parserState != Completed);
195194 if (self.parserState == Idle) {
196195 self.parserState = Running;
197196 }
@@ -286,4 +285,8 @@ - (void)saveScreenshotForFailedTestWithName:(NSString *)testName inClass:(NSStri
286285 [self .screenshotService saveScreenshotForFailedTestWithName: fullTestName];
287286}
288287
288+ - (void )setParserStateCompleted {
289+ self.parserState = Completed;
290+ }
291+
289292@end
Original file line number Diff line number Diff line change 88
99test :
1010 override :
11- - ./scripts/bluepill.sh test
12-
11+ - ./scripts/bluepill.sh test
You can’t perform that action at this time.
0 commit comments