Skip to content

Commit

Permalink
fixed test harness logfile name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Palao committed Aug 29, 2021
1 parent 8a1d660 commit 05d5ebb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ios/test/harness/OutputViewController.m
Expand Up @@ -10,6 +10,8 @@
static dispatch_queue_t stderrQueue = nil;
static dispatch_queue_t logFileQueue = nil;

static char * test_result_filename = "perl-tests.txt";

@implementation OutputViewController

- (void) viewDidLoad
Expand Down Expand Up @@ -430,12 +432,7 @@ - (void) cleanupStdioRedirection

- (NSString * _Nonnull) getLogFileName
{
NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init];
NSTimeZone *timeZone = [NSTimeZone localTimeZone];
[dateFormatter setDateFormat:@"yyyyMMdd-HHmmssSSS"];
[dateFormatter setTimeZone:timeZone];
NSString *timeStamp = [dateFormatter stringFromDate:[NSDate date]];
NSString * _Nonnull logFileName = [NSString stringWithFormat:@"%@/SESSION-%@.txt", [self applicationDocumentsDirectory], timeStamp];
NSString * _Nonnull logFileName = [NSString stringWithFormat:@"%@/%s", [self applicationDocumentsDirectory], test_result_filename];
return logFileName;
}

Expand Down

0 comments on commit 05d5ebb

Please sign in to comment.