brintos

brintos / llvm-project-archived public Read only

0
0
Text · 871 B · 4964fcf Raw
26 lines · bash
1#!/usr/bin/env bash2# ===----------------------------------------------------------------------===##3#4# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.5# See https://llvm.org/LICENSE.txt for license information.6# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception7#8# ===----------------------------------------------------------------------===##9 10set -e11 12THIS_DIR="$(cd "$(dirname "$0")" && pwd)"13. "${THIS_DIR}/emulator-functions.sh"14 15# Cleanup the emulator if it's already running.16if docker container inspect libcxx-ci-android-emulator &>/dev/null; then17    echo "Stopping existing emulator container..."18    docker stop libcxx-ci-android-emulator19 20    echo "Emulator container final logs:"21    docker logs libcxx-ci-android-emulator22 23    echo "Removing existing emulator container..."24    docker rm libcxx-ci-android-emulator25fi26