run_instrumentation_test.sh 561 Bytes
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1 2 3 4 5
#!/usr/bin/env bash
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

6 7 8 9 10 11 12 13 14 15 16 17 18 19
set -e

if [ ! -f "./pubspec.yaml" ]; then
  echo "ERROR: current directory must be the root of flutter_gallery package"
  exit 1
fi

cd android

# Currently there's no non-hacky way to pass a device ID to gradlew, but it's
# OK as in the devicelab we have one device per host.
#
# See also: https://goo.gl/oe5aUW
./gradlew connectedAndroidTest -Ptarget=test/live_smoketest.dart