Fix tests broken due to the import * and system/system_output changes.
Signed-off-by: Jeremy Orlow <jorlow@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1704 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/netperf2/netperf2.py b/client/tests/netperf2/netperf2.py
index 4b4deb5..727d74b 100755
--- a/client/tests/netperf2/netperf2.py
+++ b/client/tests/netperf2/netperf2.py
@@ -52,13 +52,13 @@
# we should really record the pid we forked off, but there
# was no obvious way to run the daemon in the foreground.
# Hacked it for now
- system('killall netserver', ignore_status=True)
- system(self.server_path)
+ utils.system('killall netserver', ignore_status=True)
+ utils.system(self.server_path)
def server_stop(self):
# this should really just kill the pid I forked, but ...
- system('killall netserver')
+ utils.system('killall netserver')
def client(self, script, server_ip, args = 'CPU'):
@@ -69,7 +69,7 @@
self.job.stderr.tee_redirect(stderr_path)
script_path = os.path.join(self.srcdir, 'doc/examples', script)
- system('%s %s %s' % (script_path, server_ip, args))
+ utils.system('%s %s %s' % (script_path, server_ip, args))
self.job.stdout.restore()
self.job.stderr.restore()