Place the pub cache under the checkout directory when running snippet tests.

This is an attempt to address some recent flakiness in the Flutter analyze trybots.

Bug: https://github.com/dart-lang/sdk/issues/47881
Change-Id: I46eb1fca52fef4bbd3854c5da226512a579e11fb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222780
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
Paul Berry 2021-12-09 20:29:59 +00:00 committed by Commit Bot
parent e94799ad01
commit 3e6d9a5e55

View file

@ -39,4 +39,4 @@ $dart --enable-asserts dev/bots/analyze.dart --dart-sdk $sdk
$dart fix packages/flutter/test_fixes --compare-to-golden
# Analyze the sample code in dartdoc snippets.
$dart dev/bots/analyze_sample_code.dart
PUB_CACHE=$checkout/.pub_cache $dart dev/bots/analyze_sample_code.dart