aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2017-03-14 09:35:00 +0100
committerPeter Mikus <pmikus@cisco.com>2017-03-14 11:57:23 +0000
commitd4e9cf05335c9d819e05477204223068de930df6 (patch)
tree6eed9b291024500f03547f6aa7878c321b8bd448
parente3171449c75d948461ac24b0df7212e8a2ca45f9 (diff)
Fix: Perf-bootstrap delete install_dir if exists
Change-Id: Ib34c6144c0c97265a490bc6703b62cee670759c7 Signed-off-by: pmikus <pmikus@cisco.com>
-rwxr-xr-xresources/tools/topo_installation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/tools/topo_installation.py b/resources/tools/topo_installation.py
index 3a983962ad..0488bdae69 100755
--- a/resources/tools/topo_installation.py
+++ b/resources/tools/topo_installation.py
@@ -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)