@@ -181,7 +181,9 @@ void main() {
181
181
'--commit' , '1234' ,
182
182
'--keys-file' , '/workDirectory/keys.json' ,
183
183
'--failure-file' , '/workDirectory/failures.json' ,
184
- '--passfail' ,
184
+ // TODO(Piinks): Re-enable once https://github.com/flutter/flutter/issues/100304
185
+ // is resolved.
186
+ //'--passfail',
185
187
],
186
188
null ,
187
189
);
@@ -257,46 +259,46 @@ void main() {
257
259
await skiaClient.tryjobInit ();
258
260
});
259
261
260
- test ( 'throws for error state from imgtestAdd' , () {
261
- final File goldenFile = fs. file ( '/workDirectory/temp/golden_file_test.png' )
262
- .. createSync (recursive : true );
263
- platform = FakePlatform (
264
- environment : < String , String > {
265
- 'FLUTTER_ROOT' : _kFlutterRoot,
266
- 'GOLDCTL' : 'goldctl' ,
267
- } ,
268
- operatingSystem : 'macos'
269
- );
270
-
271
- skiaClient = SkiaGoldClient (
272
- workDirectory,
273
- fs : fs,
274
- process : process ,
275
- platform : platform ,
276
- httpClient : fakeHttpClient ,
277
- );
278
-
279
- const RunInvocation goldctlInvocation = RunInvocation (
280
- < String > [
281
- 'goldctl' ,
282
- 'imgtest' , 'add' ,
283
- '--work-dir' , '/workDirectory/temp ' ,
284
- '--test-name ' , 'golden_file_test ' ,
285
- '--png-file ' , '/workDirectory/temp/golden_file_test.png ' ,
286
- // TODO(Piinks): Re-enable once https://github.com/flutter/flutter/issues/100304
287
- // is resolved.
288
- // '--passfail',
289
- ],
290
- null ,
291
- );
292
- process.processResults[goldctlInvocation] = ProcessResult (123 , 1 , 'Expected failure' , 'Expected failure' );
293
- process.fallbackProcessResult = ProcessResult (123 , 1 , 'Fallback failure' , 'Fallback failure' );
294
-
295
- expect (
296
- skiaClient.imgtestAdd ('golden_file_test' , goldenFile),
297
- throwsException,
298
- );
299
- });
262
+ // TODO(Piinks): Re-enable once https://github.com/flutter/flutter/issues/100304
263
+ // is resolved.
264
+ // test('throws for error state from imgtestAdd', () {
265
+ // final File goldenFile = fs.file('/workDirectory/temp/golden_file_test.png')
266
+ // ..createSync(recursive: true);
267
+ // platform = FakePlatform(
268
+ // environment: <String, String>{
269
+ // 'FLUTTER_ROOT': _kFlutterRoot ,
270
+ // 'GOLDCTL' : 'goldctl',
271
+ // },
272
+ // operatingSystem: 'macos'
273
+ // );
274
+ //
275
+ // skiaClient = SkiaGoldClient(
276
+ // workDirectory ,
277
+ // fs: fs ,
278
+ // process: process ,
279
+ // platform: platform,
280
+ // httpClient: fakeHttpClient,
281
+ // );
282
+ //
283
+ // const RunInvocation goldctlInvocation = RunInvocation(
284
+ // <String>[
285
+ // 'goldctl ',
286
+ // 'imgtest ', 'add ',
287
+ // '--work-dir ', '/workDirectory/temp',
288
+ // '--test-name', 'golden_file_test',
289
+ // '--png-file', '/workDirectory/temp/golden_file_test.png',
290
+ // '--passfail',
291
+ // ],
292
+ // null,
293
+ // );
294
+ // process.processResults[goldctlInvocation] = ProcessResult(123, 1, 'Expected failure', 'Expected failure');
295
+ // process.fallbackProcessResult = ProcessResult(123, 1, 'Fallback failure', 'Fallback failure');
296
+ //
297
+ // expect(
298
+ // skiaClient.imgtestAdd('golden_file_test', goldenFile),
299
+ // throwsException,
300
+ // );
301
+ // });
300
302
301
303
test ('correctly inits tryjob for luci' , () async {
302
304
platform = FakePlatform (
0 commit comments