crosvm/tools/x86vm
Dennis Kempin 6edc4e86d2 testvm: Refactor to use argh
The code has been written before we used argh. The CLI is specified
in tools/testvm. The implementation remains in impl/testvm.py so it
can be shared with run_tests.py for automatically managing the VM
when running tests.

BUG=b:275717759
TEST=x86vm run/up/wait/stop
TEST=run_tests --dut=vm

Change-Id: I2bdb554e7ed17a9f397fd8fb02f754e4ec1e52d7
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4390729
Commit-Queue: Dennis Kempin <denniskempin@google.com>
Reviewed-by: Zihan Chen <zihanchen@google.com>
2023-04-11 20:30:26 +00:00

13 lines
364 B
Python
Executable file

#!/usr/bin/env python3
# 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.
import sys
from impl.common import TOOLS_ROOT, cmd
if __name__ == "__main__":
sys.exit(
cmd(sys.executable, TOOLS_ROOT / "testvm", *sys.argv[1:], "--arch=x86_64").fg(check=False)
)