Commit 0299d54d authored by Robert Loehning's avatar Robert Loehning
Browse files

Squish: Cleaned path maintenance in tst_build_speedcrunch



Change-Id: Ic3cb8571c79ab2880975a439d893ba794c153d7e
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent b4817323
......@@ -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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment