Unverified Commit 324e6d9d authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Re-enable Gold post-submit fail state (#101528)

parent 012952ba
...@@ -257,46 +257,44 @@ void main() { ...@@ -257,46 +257,44 @@ void main() {
await skiaClient.tryjobInit(); await skiaClient.tryjobInit();
}); });
// TODO(Piinks): Re-enable once https://github.com/flutter/flutter/issues/100304 test('throws for error state from imgtestAdd', () {
// is resolved. final File goldenFile = fs.file('/workDirectory/temp/golden_file_test.png')
// test('throws for error state from imgtestAdd', () { ..createSync(recursive: true);
// final File goldenFile = fs.file('/workDirectory/temp/golden_file_test.png') platform = FakePlatform(
// ..createSync(recursive: true); environment: <String, String>{
// platform = FakePlatform( 'FLUTTER_ROOT': _kFlutterRoot,
// environment: <String, String>{ 'GOLDCTL' : 'goldctl',
// 'FLUTTER_ROOT': _kFlutterRoot, },
// 'GOLDCTL' : 'goldctl', operatingSystem: 'macos'
// }, );
// operatingSystem: 'macos'
// ); skiaClient = SkiaGoldClient(
// workDirectory,
// skiaClient = SkiaGoldClient( fs: fs,
// workDirectory, process: process,
// fs: fs, platform: platform,
// process: process, httpClient: fakeHttpClient,
// platform: platform, );
// httpClient: fakeHttpClient,
// ); const RunInvocation goldctlInvocation = RunInvocation(
// <String>[
// const RunInvocation goldctlInvocation = RunInvocation( 'goldctl',
// <String>[ 'imgtest', 'add',
// 'goldctl', '--work-dir', '/workDirectory/temp',
// 'imgtest', 'add', '--test-name', 'golden_file_test',
// '--work-dir', '/workDirectory/temp', '--png-file', '/workDirectory/temp/golden_file_test.png',
// '--test-name', 'golden_file_test', '--passfail',
// '--png-file', '/workDirectory/temp/golden_file_test.png', ],
// '--passfail', null,
// ], );
// null, process.processResults[goldctlInvocation] = ProcessResult(123, 1, 'Expected failure', 'Expected failure');
// ); process.fallbackProcessResult = ProcessResult(123, 1, 'Fallback failure', 'Fallback failure');
// process.processResults[goldctlInvocation] = ProcessResult(123, 1, 'Expected failure', 'Expected failure');
// process.fallbackProcessResult = ProcessResult(123, 1, 'Fallback failure', 'Fallback failure'); expect(
// skiaClient.imgtestAdd('golden_file_test', goldenFile),
// expect( throwsException,
// skiaClient.imgtestAdd('golden_file_test', goldenFile), );
// throwsException, });
// );
// });
test('correctly inits tryjob for luci', () async { test('correctly inits tryjob for luci', () async {
platform = FakePlatform( platform = FakePlatform(
......
...@@ -212,12 +212,7 @@ class SkiaGoldClient { ...@@ -212,12 +212,7 @@ class SkiaGoldClient {
..writeln('Debug information for Gold:') ..writeln('Debug information for Gold:')
..writeln('stdout: ${result.stdout}') ..writeln('stdout: ${result.stdout}')
..writeln('stderr: ${result.stderr}'); ..writeln('stderr: ${result.stderr}');
// Temporarily print logs for issue diagnosis throw Exception(buf.toString());
// ignore: avoid_print
print(buf.toString());
// TODO(Piinks): Re-enable once https://github.com/flutter/flutter/issues/100304
// is resolved.
// throw Exception(buf.toString());
} }
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment