diff -ruN mozilla-release~/build/automation.py.in mozilla-release/build/automation.py.in --- mozilla-release~/build/automation.py.in 2014-01-28 06:03:34.000000000 +0200 +++ mozilla-release/build/automation.py.in 2014-02-09 18:38:44.851385600 +0200 @@ -29,7 +29,7 @@ # TODO: this is a hack for mozbase without virtualenv, remove with bug 849900 # These paths refer to relative locations to test.zip, not the OBJDIR or SRCDIR here = os.path.dirname(os.path.realpath(__file__)) -mozbase = os.path.realpath(os.path.join(os.path.dirname(here), 'mozbase')) +mozbase = os.path.realpath(os.path.join(os.path.dirname(here), '../../testing/mozbase')) if os.path.isdir(mozbase): for package in os.listdir(mozbase): diff -ruN mozilla-release~/build/pgo/profileserver.py mozilla-release/build/pgo/profileserver.py --- mozilla-release~/build/pgo/profileserver.py 2014-01-28 06:03:34.000000000 +0200 +++ mozilla-release/build/pgo/profileserver.py 2014-02-09 18:42:36.402422220 +0200 @@ -4,6 +4,17 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +import os +import sys + +# Let's put all subdirectories under testing/mozbase/ and python/ here +for base in ['../testing/mozbase/', '../python/']: + for d in next(os.walk(base))[1]: + sys.path.append(os.path.join(os.path.dirname(__file__), '../' + base + d)) + +# And finally config/ itself +sys.path.append(os.path.join(os.path.dirname(__file__), '../../config')) + from mozprofile import FirefoxProfile, Profile, Preferences from mozprofile.permissions import ServerLocations from mozrunner import FirefoxRunner, CLI @@ -11,8 +22,6 @@ import json import socket import threading -import os -import sys import shutil import tempfile from datetime import datetime diff -ruN mozilla-release~/client.mk mozilla-release/client.mk --- mozilla-release~/client.mk 2014-01-28 06:03:35.000000000 +0200 +++ mozilla-release/client.mk 2014-02-09 18:38:44.875384983 +0200 @@ -238,7 +238,7 @@ $(MAKE) -f $(TOPSRCDIR)/client.mk realbuild MOZ_PROFILE_GENERATE=1 MOZ_PGO_INSTRUMENTED=1 $(MAKE) -C $(PGO_OBJDIR) package MOZ_PGO_INSTRUMENTED=1 MOZ_INTERNAL_SIGNING_FORMAT= MOZ_EXTERNAL_SIGNING_FORMAT= rm -f ${PGO_OBJDIR}/jarlog/en-US.log - MOZ_PGO_INSTRUMENTED=1 JARLOG_FILE=jarlog/en-US.log EXTRA_TEST_ARGS=10 $(MAKE) -C $(PGO_OBJDIR) pgo-profile-run + MOZ_PGO_INSTRUMENTED=1 JARLOG_FILE=jarlog/en-US.log EXTRA_TEST_ARGS=10 topsrcdir=$(TOPSRCDIR) DEPTH=. PYTHON=python $(MAKE) -C $(PGO_OBJDIR) -f $(TOPSRCDIR)/testing/testsuite-targets.mk pgo-profile-run $(MAKE) -f $(TOPSRCDIR)/client.mk maybe_clobber_profiledbuild $(MAKE) -f $(TOPSRCDIR)/client.mk realbuild MOZ_PROFILE_USE=1