Make print_to_tty() just open /dev/tty directly, not call system, just to do
echo ... ewwww.
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@487 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/autotest_utils.py b/client/bin/autotest_utils.py
index b5dab84..1139a04 100755
--- a/client/bin/autotest_utils.py
+++ b/client/bin/autotest_utils.py
@@ -330,7 +330,7 @@
def print_to_tty(string):
"""Output string straight to the tty"""
- os.system("echo " + string + " >> /dev/tty")
+ open('/dev/tty', 'w').write(string + '\n')
def dump_object(object):