don't require root privileges when running the tests
Change-Id: Ib67bf1a898e3c1e4038698f1cb068ae9099d7921
Signed-off-by: Klement Sekera <ksekera@cisco.com>
diff --git a/test/framework.py b/test/framework.py
index 67f8a05..0ee266e 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -241,7 +241,7 @@
# @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 @@
@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))