mail/test/mozmill/override-main-menu-collapse/wrapper.py
author tbirdbld
Thu, 03 May 2018 19:17:35 -0400
branchTHUNDERBIRD600b6_2018050319_RELBRANCH
changeset 35347 c57380d21277e4ac75c43771634ad4e9f5866888
parent 28009 21ba31e50f44235767d1959b54e9fc7eb7738480
child 30786 60dfc2e2e18c5de53cd2ba530d817707a70c5ba6
permissions -rw-r--r--
Added THUNDERBIRD_60_0b6_RELEASE THUNDERBIRD_60_0b6_BUILD1 tag(s) for changeset 4bd4065b53b0. DONTBUILD CLOSED TREE a=release

# This Source Code Form is subject to the terms of the Mozilla Public
# 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/.

# For these tests, we need to disable the account provisioner, or
# else it will spawn immediately and block before we have a chance to run
# any Mozmill tests.

import os
import shutil
import sys

# We don't want any accounts for these tests.
NO_ACCOUNTS = True

def on_profile_created(profiledir):
    """
    On profile creation, this copies prefs.js from the current folder to
    profile_dir as a user.js file. These user prefs is interpreted in addition
    to the standard prefs.js file.
    """
    # The pref file is in the same directory this script is in.
    preffile = os.path.join(os.path.dirname(__file__), "prefs.js")
    shutil.copy(preffile, os.path.join(profiledir, "user.js"))