guest_test is used to execute test on Linux and Windows, "cmd /c" is only useful for Windows guests.
Changes from v1: - Drop the judgement of Windows guest - Update cmd of guest_test Signed-off-by: Amos Kong <[email protected]> --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/tests/guest_test.py b/client/tests/kvm/tests/guest_test.py index b6bebc7..e396952 100644 --- a/client/tests/kvm/tests/guest_test.py +++ b/client/tests/kvm/tests/guest_test.py @@ -63,7 +63,7 @@ def run_guest_test(test, params, env): script_path = kvm_utils.get_path(test.bindir, script) vm.copy_files_to(script_path, dst_rsc_path, timeout=60) - command = "cmd /c %s %s %s" %(interpreter, dst_rsc_path, script_params) + command = "%s %s %s" %(interpreter, dst_rsc_path, script_params) logging.info("---------------- Script output ----------------") status = session.get_command_status(command, diff --git a/client/tests/kvm/tests_base.cfg.sample b/client/tests/kvm/tests_base.cfg.sample index 40ecf4a..7b5aac2 100644 --- a/client/tests/kvm/tests_base.cfg.sample +++ b/client/tests/kvm/tests_base.cfg.sample @@ -290,7 +290,7 @@ variants: reboot = yes variants: - autoit: - interpreter = D:\AutoIt3.exe + interpreter = "cmd /c D:\AutoIt3.exe" variants: - notepad: guest_script = autoit/notepad1.au3 @@ -302,7 +302,7 @@ variants: dst_rsc_dir = "C:\" dst_rsc_path = "C:\autoit\stub\stub.au3" - powershell: - interpreter = "powershell.exe -File" + interpreter = "cmd /c powershell.exe -File" variants: - stub: download = yes _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
