pass sh options to scp as well
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sun, 6 Apr 2008 10:21:00 +0000 (10:21 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Sun, 6 Apr 2008 10:21:00 +0000 (10:21 +0000)
system/TestSsh.py

index b4cc398..23d9541 100644 (file)
@@ -121,6 +121,7 @@ class TestSsh:
             return 0
         self.create_buildname_once()
         scp_command="scp "
+        scp_command += TestSh.std_options
         if recursive: scp_command += "-r "
         scp_command += self.key_part()
         scp_command += "%s %s:%s/%s"%(local_file,self.hostname_part(),
@@ -134,6 +135,7 @@ class TestSsh:
             command += "%s %s"%(remote_file,local_file)
         else:
             command="scp "
+            command += TestSh.std_options
             if recursive: command += "-r "
             command += self.key_part()
             command += "%s:%s/%s %s"%(self.hostname_part(),self.buildname,remote_file,local_file)