summaryrefslogtreecommitdiffstats
path: root/test/framework.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2016-10-05 14:05:33 +0200
committerDamjan Marion <dmarion.lists@gmail.com>2016-10-05 16:43:25 +0000
commitb80f9d1b7335f8d32adc0798f26a450419e44695 (patch)
tree6ae58926c0954636d132c93d1d3b051985bb1ed1 /test/framework.py
parentf154448baa6bad9383d3c05230022ed24e2f2fa4 (diff)
don't require root privileges when running the tests
Change-Id: Ib67bf1a898e3c1e4038698f1cb068ae9099d7921 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/framework.py')
-rw-r--r--test/framework.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/framework.py b/test/framework.py
index 67f8a058ad4..0ee266ec843 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -241,7 +241,7 @@ class VppTestCase(unittest.TestCase):
# @param pkts List variable to store packets to be added to the stream.
@classmethod
def pg_add_stream(cls, i, pkts):
- os.system("sudo rm -f /tmp/pg%u_in.pcap" % i)
+ os.system("rm -f /tmp/pg%u_in.pcap" % i)
wrpcap("/tmp/pg%u_in.pcap" % i, pkts)
# no equivalent API command
cls.cli(0, "packet-generator new pcap /tmp/pg%u_in.pcap source pg%u"
@@ -258,7 +258,7 @@ class VppTestCase(unittest.TestCase):
@classmethod
def pg_enable_capture(cls, args):
for i in args:
- os.system("sudo rm -f /tmp/pg%u_out.pcap" % i)
+ os.system("rm -f /tmp/pg%u_out.pcap" % i)
cls.cli(0, "packet-generator capture pg%u pcap /tmp/pg%u_out.pcap"
% (i, i))