This makes prepbuilddirs work if it is run a second time for the same
builddirs, which is useful for ad-hoc testing.

Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
---
 Osstest/BuildSupport.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Osstest/BuildSupport.pm b/Osstest/BuildSupport.pm
index d005ca9..7e114cf 100644
--- a/Osstest/BuildSupport.pm
+++ b/Osstest/BuildSupport.pm
@@ -91,7 +91,8 @@ sub builddirsprops {
 sub prepbuilddirs {
     my (@xbuilddirs) = @_;
     my $cmd = "mkdir -p $builddir && rm -rf $builddir/*-stamp $builddir/dist";
-    $cmd .= " && mkdir $builddir/$_" foreach @xbuilddirs;
+    $cmd .= " && rm -rf $builddir/$_ && mkdir $builddir/$_"
+       foreach @xbuilddirs;
     target_cmd($ho,$cmd,600);
 }
 
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to