File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Bluepill-cli/BPInstanceTests Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ - (void)testBuildArgsAndEnvironmentWithPath {
54
54
@" MNTF_SCREENSHOTS_BASELINE_REAL" : @" /Documents/Baseline" ,
55
55
@" MNTF_SCREENSHOTS_DIFF" : @" $(PROJECT_DIR)/build/outputs/tests_artifacts/Diff" ,
56
56
@" MNTF_SCREENSHOTS_DIFF_REAL" : @" /Documents/Screenshots/Diff" ,
57
- @" MNTF_SCREENSHOTS_REAL" : @" /Documents/Screenshots"
57
+ @" MNTF_SCREENSHOTS_REAL" : @" /Documents/Screenshots" ,
58
+ @" TA_SCREENSHOTS_REAL" : @" /Documents/Screenshots"
58
59
}
59
60
};
60
61
XCTAssert ([dictionary isEqualToDictionary: expectedDictionary], @" Dictionary doesn't match expectation" );
Original file line number Diff line number Diff line change 86
86
ReferencedContainer = " container:mntf-ios.xcodeproj" >
87
87
</BuildableReference >
88
88
</MacroExpansion >
89
+ <EnvironmentVariables >
90
+ <EnvironmentVariable
91
+ key = " TA_SCREENSHOTS_REAL"
92
+ value = " /Documents/Screenshots"
93
+ isEnabled = " YES" >
94
+ </EnvironmentVariable >
95
+ </EnvironmentVariables >
89
96
<AdditionalOptions >
90
97
</AdditionalOptions >
91
98
</TestAction >
Original file line number Diff line number Diff line change @@ -160,8 +160,9 @@ + (NSDictionary *)buildArgsAndEnvironmentWith:(NSString *)schemePath {
160
160
NSArray *argsNodes =
161
161
[document nodesForXPath: [NSString stringWithFormat: @" //%@ //CommandLineArgument" , @" LaunchAction" ] error: &error];
162
162
NSAssert (error == nil , @" Failed to get nodes: %@ " , [error localizedFailureReason ]);
163
- NSArray *envNodes =
164
- [document nodesForXPath: [NSString stringWithFormat: @" //%@ //EnvironmentVariable" , @" LaunchAction" ] error: &error];
163
+ NSMutableArray *envNodes = [[NSMutableArray alloc ] init ];
164
+ [envNodes addObjectsFromArray: [document nodesForXPath: [NSString stringWithFormat: @" //%@ //EnvironmentVariable" , @" LaunchAction" ] error: &error]];
165
+ [envNodes addObjectsFromArray: [document nodesForXPath: [NSString stringWithFormat: @" //%@ //EnvironmentVariable" , @" TestAction" ] error: &error]];
165
166
for (NSXMLElement *node in argsNodes) {
166
167
NSString *argument = [[node attributeForName: @" argument" ] stringValue ];
167
168
NSArray *argumentsArray = [argument componentsSeparatedByString: @" " ];
You can’t perform that action at this time.
0 commit comments