From 39d13a038f5ab6110e6be61a67c256a13cb66063 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Mon, 3 Feb 2020 22:44:45 -0800 Subject: [PATCH] Allow long filenames setting for customer tests (#50060) --- dev/customer_testing/run_tests.dart | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dev/customer_testing/run_tests.dart b/dev/customer_testing/run_tests.dart index 4a662ba830..3fe17dcc0f 100644 --- a/dev/customer_testing/run_tests.dart +++ b/dev/customer_testing/run_tests.dart @@ -173,7 +173,11 @@ Future run(List arguments) async { } finally { if (verbose) print('Deleting temporary directory...'); - checkout.deleteSync(recursive: true); + try { + checkout.deleteSync(recursive: true); + } on FileSystemException { + print('Failed to delete "${checkout.path}".'); + } } if (verbose) print(''); @@ -256,8 +260,8 @@ class TestFile { // (e-mail regexp from HTML standard) static final RegExp _email = RegExp(r'''^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$'''); - static final RegExp _fetch1 = RegExp(r'^git clone https://github.com/[-a-zA-Z0-9]+/[-_a-zA-Z0-9]+.git tests$'); - static final RegExp _fetch2 = RegExp(r'^git -C tests checkout [0-9a-f]+$'); + static final RegExp _fetch1 = RegExp(r'^git(?: -c core.longPaths=true)? clone https://github.com/[-a-zA-Z0-9]+/[-_a-zA-Z0-9]+.git tests$'); + static final RegExp _fetch2 = RegExp(r'^git(?: -c core.longPaths=true)? -C tests checkout [0-9a-f]+$'); final List contacts; final List fetch;