From 23098dde502373444d3d5f203f6c5c9ac73fefed Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Fri, 11 May 2018 07:46:48 -0700 Subject: [PATCH] don't fail a test when there are issues deleting a temp dir (#17498) --- dev/bots/analyze-sample-code.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev/bots/analyze-sample-code.dart b/dev/bots/analyze-sample-code.dart index 5bf2bf5e12..60184aa6b1 100644 --- a/dev/bots/analyze-sample-code.dart +++ b/dev/bots/analyze-sample-code.dart @@ -294,7 +294,12 @@ dependencies: } print('-------8<-------'); } else { - temp.deleteSync(recursive: true); + try { + temp.deleteSync(recursive: true); + } on FileSystemException catch (e) { + // ignore errors deleting the temporary directory + print('Ignored exception during tearDown: $e'); + } } } exit(exitCode);