From 8c0ffce27f9c4cec4646d2dcb24f28686bbdacac Mon Sep 17 00:00:00 2001 From: Narasimhan V Date: Wed, 8 May 2019 15:32:24 +0530 Subject: [PATCH] Fix uperf test uperf test had 2 issues: 1. compilation failed due to dependency package automake 2. run failed due to change in directory. Fixed both with this commit. Signed-off-by: Narasimhan V --- io/net/uperf_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/io/net/uperf_test.py b/io/net/uperf_test.py index 6d13f4a15..8b299bfb2 100755 --- a/io/net/uperf_test.py +++ b/io/net/uperf_test.py @@ -43,7 +43,7 @@ def setUp(self): """ smm = SoftwareManager() detected_distro = distro.detect() - pkgs = ["gcc", "autoconf", "perl", "m4", "git-core"] + pkgs = ["gcc", "autoconf", "perl", "m4", "git-core", "automake"] if detected_distro.name == "Ubuntu": pkgs.extend(["libsctp1", "libsctp-dev", "lksctp-tools"]) else: @@ -94,8 +94,8 @@ def test(self): transmitting (or receiving) data from a client. This transmit large messages using multiple threads or processes. """ - os.chdir(os.path.join(self.uperf_dir, 'manual')) - cmd = "h=%s proto=tcp uperf -m throughput.xml -a" % self.peer_ip + cmd = "h=%s proto=tcp ./src/uperf -m manual/throughput.xml -a" \ + % self.peer_ip result = process.run(cmd, shell=True, ignore_status=True) if result.exit_status: self.fail("FAIL: Uperf Run failed")