Fix: Perf-bootstrap delete install_dir if exists 37/5737/4
authorpmikus <pmikus@cisco.com>
Tue, 14 Mar 2017 08:35:00 +0000 (09:35 +0100)
committerPeter Mikus <pmikus@cisco.com>
Tue, 14 Mar 2017 11:57:23 +0000 (11:57 +0000)
Change-Id: Ib34c6144c0c97265a490bc6703b62cee670759c7
Signed-off-by: pmikus <pmikus@cisco.com>
resources/tools/topo_installation.py

index 3a98396..0488bda 100755 (executable)
@@ -119,7 +119,7 @@ def main():
                     print "###TI {}".format(stdout)
             else:
                 # Create installation directory on DUT
-                cmd = "mkdir {}".format(install_dir)
+                cmd = "rm -r {0}; mkdir {0}".format(install_dir)
                 stdout = ssh_no_error(ssh, cmd)
                 print "###TI {}".format(stdout)
 

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.