From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by dpdk.org (Postfix) with ESMTP id 1D33A1150 for ; Fri, 18 Jan 2019 13:53:59 +0100 (CET) Received: by mail-wm1-f45.google.com with SMTP id g67so4401983wmd.2 for ; Fri, 18 Jan 2019 04:53:59 -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=dBQiUwb5PE3WvQ8a+nNUflqrDh6RzS8i4mjMk4Vx7vw=; b=NxzvF1Zs2rxQTnQbUviEnxZB0pQZxj4e8gxA99/vezvliBYvmMHzRKkogTDEWFC3cf nebJa4C30FfMVPMTwoh7iyZjrjARbp4Gc1DdU+jEVbCOedRHi8vHbvO8X0kdQNjB27Lu 9NlJrG8QlD1uoqjOOecDgDO9YxsHh9toVrdH7Y2V7+QlSLu0GPHfrEPUNKHLVqWkA/ef XFjsAh6CHdgc7wMnw3TDhI2CNXqrdeYC7Gd1I58W3COeqNLhm2qv6TVsmWe2HOU9zt+l X4mEsz4tQZ8nTGkz3IoJ4QLXAaGhYxF5qwYrl8B2b5m8/Whwbs+CltT4qwZTz79fBGqD i7pg== 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=dBQiUwb5PE3WvQ8a+nNUflqrDh6RzS8i4mjMk4Vx7vw=; b=l/pSOTod/bjjgN8/fHzn7ImaYJ/IOyLXGdD78QZ3zs2ieIBsOjl/BWRVtjpPXgeH9A MvX0ChSmFBSpjaTlMTF2jewxZtRtXzLhi59Sgo0jVDsLVSRS1N4eh+K9Qhk8110z91OV pYzUkHfPdPuGi2uzDVMvFiMUHyTpgOVLwIBwGwxLbi7rbsGM23+GA0ymGntO8AtwSDr6 BaHGj0doffyX2iXnBazwdgjUllRqcBirTTbW0VZn+YEA77+MV7JA5NENs98PIcMwno4W F2aln2TTWZYT9q2wzbKnP9OJnru0mZJfepoQjWUgx7j1vmIThKFfNKDghIzUaNZF156m o2yg== X-Gm-Message-State: AJcUukeyk1Y41grf/ZMv6MqqiJ6J2plxPfDAoPCvCFnXZPAmD9A8fIqR RpGSpeWxfywjYV5ZYjdYns4sov2uSi8= X-Google-Smtp-Source: ALg8bN6Yj9OA84uh/+tV7JYVUA2DqWZ1INkY1XCZjqMy+4kj/E407H5BKxdlpzSXUJC8aVLR3oaIeg== X-Received: by 2002:a1c:6442:: with SMTP id y63mr14933963wmb.143.1547816038620; Fri, 18 Jan 2019 04:53:58 -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 h16sm173365147wrb.62.2019.01.18.04.53.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Jan 2019 04:53:58 -0800 (PST) From: Rami Rosen To: dts@dpdk.org Cc: Rami Rosen Date: Fri, 18 Jan 2019 14:53:52 +0200 Message-Id: <20190118125352.8872-1-ramirose@gmail.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH] framework/tester: 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:53:59 -0000 Signed-off-by: Rami Rosen --- framework/tester.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/tester.py b/framework/tester.py index 4e651a1..0895673 100755 --- a/framework/tester.py +++ b/framework/tester.py @@ -456,14 +456,14 @@ class Tester(Crb): def scapy_background(self): """ - Configure scapy running in backgroud mode which mainly purpose is + Configure scapy running in background mode which mainly purpose is that save RESULT into scapyResult.txt. """ self.inBg = True def scapy_foreground(self): """ - Running backgroup scapy and convert to foregroup mode. + Running background scapy and convert to foreground mode. """ self.send_expect("echo -n '' > scapyResult.txt", "# ") if self.inBg: @@ -587,7 +587,7 @@ class Tester(Crb): for param in params: layer, config = param pkt.config_layer(layer, config) - # hardcode src/dst port for some protocal may cause issue + # hardcode src/dst port for some protocol may cause issue if "TCP" in pkt_type: pkt.config_layer('tcp', {'src': 65535, 'dst': 65535}) else: @@ -628,7 +628,7 @@ class Tester(Crb): for txport, rxport in portList: recv_pkts = self.load_tcpdump_sniff_packets(rx_inst[rxport]) - # only report when recevied number not matched + # only report when received number not matched if len(tx_pkts[txport]) > len(recv_pkts): print ("Pkt number not matched,%d sent and %d received\n" \ % (len(tx_pkts[txport]), len(recv_pkts))) @@ -661,7 +661,7 @@ class Tester(Crb): prev_id = t_idx if compare_f(tx_pkts[txport][t_idx], recv_pkts[idx], "L4") is False: - print "Pkt recevied index %d not match original " \ + print "Pkt received index %d not match original " \ "index %d" % (idx, t_idx) print "Sent: %s" % strip_f(tx_pkts[txport][t_idx], "L4") print "Recv: %s" % strip_f(recv_pkts[idx], "L4") -- 2.19.2