From c38e5838daa3536dba36473be9fdcd2bbd596dcd Mon Sep 17 00:00:00 2001 From: szymonrybczak Date: Mon, 31 Jul 2023 15:09:01 +0200 Subject: [PATCH] chore: move script checking Appium server status to separate file --- .circleci/config.yml | 6 +----- scripts/circleci/check_appium_server_status.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100755 scripts/circleci/check_appium_server_status.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 15334a6e1a618a..431c355dd2179d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -785,11 +785,7 @@ jobs: command: mv /tmp/e2e/Build/Products/Debug-iphonesimulator/RNTester.app packages/rn-tester-e2e/apps/rn-tester.app - run: name: Check Appium server status - command: | - if ! nc -z 127.0.0.1 4723; then - echo Could not find Appium server! - exit 1 - fi + command: scripts/circleci/check_appium_server_status.sh - run: name: Run E2E tests command: | diff --git a/scripts/circleci/check_appium_server_status.sh b/scripts/circleci/check_appium_server_status.sh new file mode 100755 index 00000000000000..b0a2b917dc4a8c --- /dev/null +++ b/scripts/circleci/check_appium_server_status.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + +# This script checks if Appium server is running on default port (which is 4723). +if ! nc -z 127.0.0.1 4723; then + echo Could not find Appium server. + exit 1 +fi