mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
b597678ad4
Some recent changes introduced a bug that breaks reusage of containers. Instead of trying to restart a stopped container, we delete it instead and start a fresh one. The code was refactored to allow for testing. The tests run against the real docker service and are run as part of the health checks in kokoro / luci. This CL also gets rid of the custon command line parsing since luci can now run it with argh available. BUG=b:234402839 TEST=./tools/dev_containes --self-test [--podman] Change-Id: Id5eaf0ea83ff07433f8f57cb652b5c393dcb9da3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3681399 Reviewed-by: Anton Romanov <romanton@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
14 lines
474 B
Bash
Executable file
14 lines
474 B
Bash
Executable file
#!/bin/bash
|
|
# Copyright 2021 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
source "$(dirname $0)/common.sh"
|
|
|
|
./tools/dev_container --self-test
|
|
|
|
./tools/dev_container --hermetic bash -c "\
|
|
./tools/run_tests --target=host -v \
|
|
&& ./tools/health-check \
|
|
&& cargo build --verbose --no-default-features \
|
|
&& mdbook build ./docs/book \
|
|
&& ./tools/cargo-doc"
|