This small patch is to properly escape an mkdir command in autotest.py
From: Benjamin Poirier <poirier@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@588 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autotest.py b/server/autotest.py
index 2d1cb13..8031eb2 100644
--- a/server/autotest.py
+++ b/server/autotest.py
@@ -76,8 +76,8 @@
if os.path.isdir(self.source_material):
# Copy autotest recursively
autodir = _get_autodir(host)
- host.run('mkdir -p %s' %
- utils.scp_remote_escape(autodir))
+ host.run('mkdir -p "%s"' %
+ utils.sh_escape(autodir))
host.send_file(self.source_material,
autodir)
else: