Don't remove the control file if it wasn't a temp copy
Signed-off-by: Martin J. Bligh <mbligh@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1064 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autotest.py b/server/autotest.py
index 489940d..d843739 100644
--- a/server/autotest.py
+++ b/server/autotest.py
@@ -195,7 +195,8 @@
# Copy control_file to remote_control_file on the host
tmppath = utils.get(control_file)
host.send_file(tmppath, atrun.remote_control_file)
- os.remove(tmppath)
+ if os.path.abspath(tmppath) != os.path.abspath(control_file):
+ os.remove(tmppath)
try:
atrun.execute_control(timeout=timeout)