From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by dpdk.org (Postfix) with ESMTP id 9B75C2B95 for ; Fri, 18 Jan 2019 13:51:09 +0100 (CET) Received: by mail-wm1-f68.google.com with SMTP id y185so931346wmd.1 for ; Fri, 18 Jan 2019 04:51:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=W+1aQnkG7zS+Xphnfeu3bKJeG2Vur0pJdooT47bc6JA=; b=jkGNho9GSm7ho6mdZVB2zk971v6MbPYuY4eDLwZ0Vd3qR891VfzWwkGn95aUjSfuYX ZP9MCnp5eE4CIev9wfu+FSf86r0y1PTd6BJbBUxcD0N1bw+tHRxgBANETBLOxk4euOZL hRYRMGOU4ogpjED3XNsioWRa5OUDvgif+fYwdcNJvSw/pqL/IOB8VgMEEAKxKMGDbTEc Uqzab1gr1W+sq2qUaWmbPvfyDlAkd/R4MEd1bXpxm/AC6BdY4eoQX2hT3HqQIDM//Ruh DVNkFYKXoHAQni0xcBYCkzpTvmwQc8vROeVcMQcJ5q0KATfqFwA+6oAbLM6+FPQJ2Lej 2xDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=W+1aQnkG7zS+Xphnfeu3bKJeG2Vur0pJdooT47bc6JA=; b=rw5DWYqmjt/NpmU+/afI10Z0/zjrCu0TXTkm4pnqLFq3AvwDh8vnNjJ6TenK8BWIxO YjjAzn/5yQgh2OMn2wAD7uAVTt3iJA9NfjR15tpayXQN2GhNWloug4JvCoUlxw+eLPNV cl0T2KSDiytM+ANv6gOi9C4yVqgvmiVae7o0vhxJXcWnN9O6VwPeKMAKFj9Bm6rqhORk hJiJplPW3LDFr3w0V4ZEawLeCXaSKFEeTZi6n4TrfeuneWB1V59LsDS4Dzq52lrmyy9v 8MNROsWo+D2EjeuZMpw3PsuyNujYOjxl6rVl4ZgESQnMZV+gHyHjXNlsdCoUsPnaOZ3l N5jw== X-Gm-Message-State: AJcUukc+yoOqwquvmOKzJ8OLCMpxpV9HQdvzoKs6ezyFMXDjakP9X3OI HML8dT8yVZEloPmzeeU/eyvjszjJp5I= X-Google-Smtp-Source: ALg8bN4jd8LPGtHO1Ncp3QLq6U3SxtWQT4L0rOdoRTWbCpsrAJVC5lh0H6tp5QolMM/UGE2blW7syA== X-Received: by 2002:a1c:e345:: with SMTP id a66mr15333337wmh.12.1547815868971; Fri, 18 Jan 2019 04:51:08 -0800 (PST) Received: from localhost.localdomain (bzq-109-66-107-204.red.bezeqint.net. [109.66.107.204]) by smtp.gmail.com with ESMTPSA id 124sm45235275wmh.22.2019.01.18.04.51.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Jan 2019 04:51:08 -0800 (PST) From: Rami Rosen To: dts@dpdk.org Cc: Rami Rosen Date: Fri, 18 Jan 2019 14:51:02 +0200 Message-Id: <20190118125102.8532-1-ramirose@gmail.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH] framework/qemu_kvm: fix typos X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2019 12:51:09 -0000 Signed-off-by: Rami Rosen --- framework/qemu_kvm.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/framework/qemu_kvm.py b/framework/qemu_kvm.py index 51fea9f..279b73d 100644 --- a/framework/qemu_kvm.py +++ b/framework/qemu_kvm.py @@ -104,7 +104,7 @@ class QEMUKvm(VirtBase): # internal variable to track whether default nic has been added self.__default_nic = False - # arch info for multi-paltform init + # arch info for multi-platform init self.arch = self.host_session.send_expect('uname -m', '# ') # set some default values for vm, @@ -234,7 +234,7 @@ class QEMUKvm(VirtBase): def enable_virtual_ability(self): """ - Load the virutal module of kernel to enable the virutal ability. + Load the virtual module of kernel to enable the virtual ability. """ self.host_session.send_expect('modprobe kvm', '# ') self.host_session.send_expect('modprobe kvm_intel', '# ') @@ -577,7 +577,7 @@ class QEMUKvm(VirtBase): field = lambda option, index, separator=':': \ option.split(separator)[index] - # get the forword type + # get the forward type fwd_type = field(opt_hostfwd, 0) if not fwd_type: fwd_type = 'tcp' @@ -699,7 +699,7 @@ class QEMUKvm(VirtBase): """ driver: [pci-assign | virtio-net-pci | ...] opt_[host | addr | ...]: value - note:the sub-opterty will be decided according to the driver. + note:the sub-option will be decided according to the driver. """ if 'driver' in options.keys() and \ options['driver']: @@ -879,7 +879,7 @@ class QEMUKvm(VirtBase): def __string_has_multi_fields(self, string, separator, field_num=2): """ - Check if string has multiple fields which is splited with + Check if string has multiple fields which are splitted with specified separator. """ fields = string.split(separator) @@ -992,7 +992,7 @@ class QEMUKvm(VirtBase): self.control_session.send_command("socat %s STDIO" % self.serial_path) - # login message not ouput if timeout too small + # login message not output if timeout is too small out = self.control_session.send_command("", timeout=5).replace('\r', '').replace('\n', '') if len(out) == 0: @@ -1566,7 +1566,7 @@ class QEMUKvm(VirtBase): def __monitor_session(self, command, *args): """ - Connect the qemu montior session, send command and return output message. + Connect the qemu monitor session, send command and return output message. """ if not self.monitor_sock_path: self.host_logger.info( @@ -1696,7 +1696,7 @@ class QEMUKvm(VirtBase): self.quit_control_session() return out except Exception as e: - print RED("Exception happend on [%s] serial with cmd [%s]" % (self.vm_name, command)) + print RED("Exception happened on [%s] serial with cmd [%s]" % (self.vm_name, command)) print RED(e) self.close_control_session(dut_id=self.host_dut.dut_id) return 'Failed' -- 2.19.2