summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2020-05-06 16:38:40 -0400
committerOle Tr�an <otroan@employees.org>2021-02-15 17:28:00 +0000
commitae936086fd4390cc54300c02491bef337934a772 (patch)
tree2e438d7e41818579e16f3ef72d5bb217fbf4d907 /test
parent8f5fef2c78b95de1a636ce27111722b71702212a (diff)
tests: fix import in test/test_pcap.py
Type: test Change-Id: Ib9192a12812b40090a0859cb73288aea27a3ca01 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_pcap.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/test_pcap.py b/test/test_pcap.py
index 353ad2178b5..5c086ef21c8 100644
--- a/test/test_pcap.py
+++ b/test/test_pcap.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
+import os
import unittest
from framework import VppTestCase, VppTestRunner, running_gcov_tests
from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
-from os import path, remove
class TestPcap(VppTestCase):
@@ -77,12 +77,13 @@ class TestPcap(VppTestCase):
else:
self.logger.info(cmd + " FAIL retval " + str(r.retval))
- self.assertTrue(path.exists('/tmp/dispatch.pcap'))
- self.assertTrue(path.exists('/tmp/rxtx.pcap'))
- self.assertTrue(path.exists('/tmp/filt.pcap'))
+ self.assertTrue(os.path.exists('/tmp/dispatch.pcap'))
+ self.assertTrue(os.path.exists('/tmp/rxtx.pcap'))
+ self.assertTrue(os.path.exists('/tmp/filt.pcap'))
os.remove('/tmp/dispatch.pcap')
os.remove('/tmp/rxtx.pcap')
os.remove('/tmp/filt.pcap')
+
if __name__ == '__main__':
unittest.main(testRunner=VppTestRunner)