forked from qt-creator/qt-creator
Squish: Cleaned path maintenance in tst_build_speedcrunch
Change-Id: Ic3cb8571c79ab2880975a439d893ba794c153d7e Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -44,17 +44,11 @@ def main():
|
||||
|
||||
def init():
|
||||
global SpeedCrunchPath
|
||||
SpeedCrunchPath = srcPath + "/creator-test-data/speedcrunch/src/speedcrunch.pro"
|
||||
SpeedCrunchPath = os.path.join(srcPath, "creator-test-data", "speedcrunch", "src", "speedcrunch.pro")
|
||||
cleanup()
|
||||
|
||||
def cleanup():
|
||||
# Make sure the .user files are gone
|
||||
cleanUpUserFiles(SpeedCrunchPath)
|
||||
|
||||
BuildPath = glob.glob(srcPath + "/creator-test-data/speedcrunch/speedcrunch-build-*")
|
||||
BuildPath += glob.glob(srcPath + "/creator-test-data/speedcrunch/qtcreator-build-*")
|
||||
|
||||
if BuildPath:
|
||||
for dir in BuildPath:
|
||||
if os.access(dir, os.F_OK):
|
||||
shutil.rmtree(dir)
|
||||
for dir in glob.glob(os.path.join(srcPath, "creator-test-data", "speedcrunch", "speedcrunch-build-*")):
|
||||
deleteDirIfExists(dir)
|
||||
|
||||
Reference in New Issue
Block a user