Don't fall over if debug dir doesn't exist
Signed-off-by: Martin Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@916 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/hosts/ssh_host.py b/server/hosts/ssh_host.py
index 52a925f..f8e9d77 100644
--- a/server/hosts/ssh_host.py
+++ b/server/hosts/ssh_host.py
@@ -241,7 +241,7 @@
"""
Log the output of the warning monitor to a specified file
"""
- if logfilename == None:
+ if logfilename == None or not os.path.isdir('debug'):
return
script_path = os.path.join(self.serverdir, 'warning_monitor')
script_cmd = 'expect %s %s >> %s' % (script_path,