[zorg] r223408 - Use shutil instead of a shell command to clean
Sean Callanan
scallanan at apple.com
Thu Dec 4 15:04:42 PST 2014
Author: spyffe
Date: Thu Dec 4 17:04:41 2014
New Revision: 223408
URL: http://llvm.org/viewvc/llvm-project?rev=223408&view=rev
Log:
Use shutil instead of a shell command to clean
the LLDB build directory. The shell command does
nothing because "*" isn't expanded.
Modified:
zorg/trunk/zorg/jenkins/build.py
Modified: zorg/trunk/zorg/jenkins/build.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/jenkins/build.py?rev=223408&r1=223407&r2=223408&view=diff
==============================================================================
--- zorg/trunk/zorg/jenkins/build.py (original)
+++ zorg/trunk/zorg/jenkins/build.py Thu Dec 4 17:04:41 2014
@@ -7,6 +7,7 @@ import subprocess
import datetime
import argparse
import urllib
+import shutil
SERVER = "labmaster2.local"
@@ -185,8 +186,7 @@ def lldb_builder():
header("Clean LLDB build directory")
if os.path.exists(conf.lldbbuilddir()):
- clean_cmd = ["rm", "-rf", conf.lldbbuilddir() + "/*"]
- run_cmd(conf.workspace, clean_cmd)
+ shutil.rmtree(conf.lldbbuilddir())
footer()
# Build into the build folder
More information about the llvm-commits
mailing list