Bug 1203596: Remove .userconfig after run build.sh. r=jlund

If we keep the userconfig file inside B2G shared cache, it may
cause build bustage in other branches.
This commit is contained in:
Wander Lairson Costa 2015-09-16 10:40:40 +02:00
parent 15b91024c3
commit 07c171dd06

View File

@ -37,6 +37,7 @@ from mozharness.base.python import VirtualenvMixin
from mozharness.base.python import InfluxRecordingMixin
from mozharness.mozilla.building.buildbase import MakeUploadOutputParser
from mozharness.mozilla.building.buildb2gbase import B2GBuildBaseScript, B2GMakefileErrorList
from mozharness.base.script import PostScriptRun
class B2GBuild(LocalesMixin, PurgeMixin,
@ -1130,6 +1131,13 @@ class B2GBuild(LocalesMixin, PurgeMixin,
self.submit_balrog_updates(product='b2g')
@PostScriptRun
def _remove_userconfig(self):
self.info("Cleanup .userconfig file.")
dirs = self.query_abs_dirs()
userconfig_path = os.path.join(dirs["work_dir"], ".userconfig")
os.remove(userconfig_path)
# main {{{1
if __name__ == '__main__':
myScript = B2GBuild()