diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-03-17 17:31:56 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-03-17 17:31:56 +0200 |
commit | 33c80d0f2c3af8b302e50ce3925869dfd37267ed (patch) | |
tree | 0796b9ca8b56b935551498247650f0c1daa1c399 /linux_dpdk | |
parent | 4a239b5bb2bb16727713af2f6ebbf89f8d720c51 (diff) |
show progress on sync to server
Diffstat (limited to 'linux_dpdk')
-rwxr-xr-x | linux_dpdk/ws_main.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux_dpdk/ws_main.py b/linux_dpdk/ws_main.py index ad8d259d..709b1931 100755 --- a/linux_dpdk/ws_main.py +++ b/linux_dpdk/ws_main.py @@ -984,7 +984,9 @@ def publish_ext(bld, custom_source = None): from_ = custom_source else: from_ = exec_p+'/'+release_name; - os.system('rsync -avz -e "ssh -i %s" --rsync-path=/usr/bin/rsync %s %s@%s:%s/release/%s' % (Env().get_trex_ex_web_key(),from_, Env().get_trex_ex_web_user(),Env().get_trex_ex_web_srv(),Env().get_trex_ex_web_path() ,release_name) ) + cmd='rsync -avz --progress -e "ssh -i %s" --rsync-path=/usr/bin/rsync %s %s@%s:%s/release/%s' % (Env().get_trex_ex_web_key(),from_, Env().get_trex_ex_web_user(),Env().get_trex_ex_web_srv(),Env().get_trex_ex_web_path() ,release_name) + print cmd + os.system( cmd ) os.system("ssh -i %s -l %s %s 'cd %s/release/;rm be_latest; ln -P %s be_latest' " %(Env().get_trex_ex_web_key(),Env().get_trex_ex_web_user(),Env().get_trex_ex_web_srv(),Env().get_trex_ex_web_path(),release_name)) #os.system("ssh -i %s -l %s %s 'cd %s/release/;rm latest; ln -P %s latest' " %(Env().get_trex_ex_web_key(),Env().get_trex_ex_web_user(),Env().get_trex_ex_web_srv(),Env().get_trex_ex_web_path(),release_name)) |