[cros_run_vm_test]: Fix typo in results_dir
Also don't output kvm command twice.
BUG=chromium:782664
TEST=manual
Change-Id: I93e06b8e3a242727c82bdb66e322d43224e350cf
Reviewed-on: https://chromium-review.googlesource.com/905814
Commit-Ready: Achuith Bhandarkar <achuith@chromium.org>
Tested-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
diff --git a/scripts/cros_vm.py b/scripts/cros_vm.py
index 7c9287e..ca2d379 100644
--- a/scripts/cros_vm.py
+++ b/scripts/cros_vm.py
@@ -273,10 +273,11 @@
qemu_args.append('-enable-kvm')
if not self.display:
qemu_args.extend(['-display', 'none'])
- logging.info(cros_build_lib.CmdToStr(qemu_args))
logging.info('Pid file: %s', self.pidfile)
if not self.dry_run:
self._RunCommand(qemu_args)
+ else:
+ logging.info(cros_build_lib.CmdToStr(qemu_args))
def _GetVMPid(self):
"""Get the pid of the VM.