Killed Flipper headless

Reviewed By: nikoant

Differential Revision: D24160480

fbshipit-source-id: 221e60473dddc0a49cea674e210beb6f85b1b03c
This commit is contained in:
Michel Weststrate
2020-12-15 01:45:29 -08:00
committed by Facebook GitHub Bot
parent 41a1af33cb
commit 08b5644253
32 changed files with 36 additions and 1256 deletions

View File

@@ -1,23 +0,0 @@
#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
set -euo pipefail
if [ `adb devices | wc -l` -lt "3" ]
then
echo "ERROR: No devices are connected. Make sure emulator is booted with flipper sample app running"
exit 1
fi
api_version=$(adb shell getprop ro.build.version.sdk)
if [ "$api_version" != "24" ]; then
echo "WARNING: Emulator has api version $api_version. Should be using API 24 for snapshot test to pass. ( Must match the one we request from oneworld at https://fburl.com/diffusion/op67q916 )"
fi
yarn build-headless --mac
unzip -o dist/Flipper-headless.zip -d /tmp
(cd headless-tests && yarn test)