mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
4131e80c89
run_guest.sh lacks the shebang, and has a small bug of missing quotes. This commit fixes them. BUG=None TEST=Confirmed that "$@" works as expected by checking the passed arguments. Change-Id: Ic0d5e8676b206be15b1b2f09b3b9c6de2b9d2fb3 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4537378 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Commit-Queue: Takaya Saeki <takayas@chromium.org>
17 lines
502 B
Bash
Executable file
17 lines
502 B
Bash
Executable file
#!/bin/bash
|
|
# Copyright 2022 The ChromiumOS Authors
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Example invocation to run the locally built guest for debugging
|
|
|
|
CARGO_TARGET=$(cargo metadata --no-deps --format-version 1 |
|
|
jq -r ".target_directory")
|
|
GUEST_DIR="${CARGO_TARGET}/guest_under_test/x86_64"
|
|
|
|
cargo run -p crosvm -- \
|
|
run \
|
|
-p "init=/bin/sh" \
|
|
--root "${GUEST_DIR}/rootfs"\
|
|
"${GUEST_DIR}/bzImage" \
|
|
"$@"
|