blob: e31555042f3a4fc5341109e4bcd66d09a5121899 [file]
#!/bin/bash
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# TODO(devoncarew): Ensure that goldens are always run on the
# flutter-version.txt SDK version.
echo "Checking flutter version..."
if flutter --version | tee /dev/tty | grep -q 'channel stable'; then
export DEVTOOLS_GOLDENS_SUFFIX="_stable"
echo ""
echo "Updating STABLE goldens because you are on the Stable flutter channel"
echo ""
else
export DEVTOOLS_GOLDENS_SUFFIX=""
echo ""
echo "Updating MASTER goldens"
echo ""
fi
set -x #echo on
which flutter
cd packages/devtools_app
flutter test -j1 --update-goldens --no-sound-null-safety
set +x
echo "Done updating goldens."
unset DART_VM_OPTIONS