third_party/blink/tools/blinkpy/web_tests/port/linux.py
def _setup_dummy_home_dir(self):
        """Creates a dummy home directory for running the test.

        This is a workaround for crbug.com/595504; see crbug.com/612730.
        If crbug.com/612730 is resolved in another way, then this may be
        unnecessary.
        """
        self._original_home = self.host.environ.get('HOME')
        self._original_cipd_cache_dir = self.host.environ.get('CIPD_CACHE_DIR')
        dummy_home = str(self._filesystem.mkdtemp())
        self.host.environ['HOME'] = dummy_home
        # When using a dummy home directory, CIPD cache directory needs to be
        # specified explicitly to make vpython work.
        self.host.environ['CIPD_CACHE_DIR'] = os.path.join(
            dummy_home, '.vpython_cipd_cache')
        self._setup_files_in_dummy_home_dir(dummy_home)
Creates a dummy home directory for running the test.

        This is a workaround for crbug.com/595504; see crbug.com/612730.
        If crbug.com/612730 is resolved in another way, then this may be
        unnecessary.
        
Creates a dummy home directory for running the test.
Creates a dummy home directory for running the test .
def _setup_dummy_home_dir(self):
        self._original_home = self.host.environ.get('HOME')
        self._original_cipd_cache_dir = self.host.environ.get('CIPD_CACHE_DIR')
        dummy_home = str(self._filesystem.mkdtemp())
        self.host.environ['HOME'] = dummy_home
        self.host.environ['CIPD_CACHE_DIR'] = os.path.join(
            dummy_home, '.vpython_cipd_cache')
        self._setup_files_in_dummy_home_dir(dummy_home)
def _setup_dummy_home_dir ( self ) : self . _original_home = self . host . environ . get ( 'HOME' ) self . _original_cipd_cache_dir = self . host . environ . get ( 'CIPD_CACHE_DIR' ) dummy_home = str ( self . _filesystem . mkdtemp ( ) ) self . host . environ [ 'HOME' ] = dummy_home self . host . environ [ 'CIPD_CACHE_DIR' ] = os . path . join ( dummy_home , '.vpython_cipd_cache' ) self . _setup_files_in_dummy_home_dir ( dummy_home )
Creates a dummy home directory for running the test.
Creates a dummy home directory for running the test .
"""Creates a dummy home directory for running the test.

        This is a workaround for crbug.com/595504; see crbug.com/612730.
        If crbug.com/612730 is resolved in another way, then this may be
        unnecessary.
        """ # When using a dummy home directory, CIPD cache directory needs to be # specified explicitly to make vpython work.
self