Commit 3df6d400 authored by Nick Alexander's avatar Nick Alexander
Browse files

Bug 1549781 - Ensure browsertime state path is created before use. r=dpalmeiro

Differential Revision: https://phabricator.services.mozilla.com/D32906

--HG--
extra : moz-landing-system : lando
parent b93ad032
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ import sys

from mach.decorators import CommandArgument, CommandProvider, Command
from mozbuild.base import MachCommandBase
from mozbuild.util import mkdir
import mozpack.path as mozpath


@@ -148,6 +149,7 @@ class MachBrowsertime(MachCommandBase):
            if fetch.get('unpack', True):
                cwd = os.getcwd()
                try:
                    mkdir(self.state_path)
                    os.chdir(self.state_path)
                    self.log(
                        logging.INFO,