Skip to content

Commit 5ef02a8

Browse files
tommadypb8o
authored andcommitted
feature/dont-check-KVM-in-checkstyle
add a new flag do_kvm_check within cmd_test to manage cmd_checkstyle Signed-off-by: tommady <[email protected]>
1 parent 8c8ee32 commit 5ef02a8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/devtool

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ unapply_performance_tweaks() {
661661
cmd_test() {
662662
do_ab_test=0
663663
do_build=1
664+
do_kvm_check=1
664665
# Parse any command line args.
665666
while [ $# -gt 0 ]; do
666667
case "$1" in
@@ -682,6 +683,9 @@ cmd_test() {
682683
"--no-build")
683684
do_build=0
684685
;;
686+
"--no-kvm-check")
687+
do_kvm_check=0
688+
;;
685689
"--") { shift; break; } ;;
686690
*)
687691
die "Unknown argument: $1. Please use --help for help."
@@ -691,7 +695,7 @@ cmd_test() {
691695
done
692696

693697
# Check prerequisites.
694-
ensure_kvm
698+
[ $do_kvm_check != 0 ] && ensure_kvm
695699
ensure_devctr
696700
ensure_build_dir
697701
ensure_ci_artifacts
@@ -907,7 +911,7 @@ cmd_mkdocs() {
907911
}
908912

909913
cmd_checkstyle() {
910-
cmd_test --no-build -- integration_tests/style -n 4 --dist worksteal
914+
cmd_test --no-build --no-kvm-check -- integration_tests/style -n 4 --dist worksteal
911915
}
912916

913917
# Check if able to run firecracker.

0 commit comments

Comments
 (0)