old_contents: # -*- coding: utf-8 -*-
  '''
      :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)`
  
  
      runtests_helpers.py
      ~~~~~~~~~~~~~~~~~~~
  '''
  
  # Import python libs
  from __future__ import absolute_import
  import os
  import tempfile
  
  SYS_TMP_DIR = tempfile.gettempdir()
  # This tempdir path is defined on tests.integration.__init__
  TMP = os.path.join(SYS_TMP_DIR, 'salt-tests-tmpdir')
  
  
  def get_salt_temp_dir():
      return TMP
  
  def get_salt_temp_dir_for_path(*path):
      return os.path.join(TMP, *path)
  
  
  def get_sys_temp_dir_for_path(*path):
      return os.path.join(SYS_TMP_DIR, *path)
  
new_contents: # -*- coding: utf-8 -*-
  '''
      :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)`
  
  
      runtests_helpers.py
      ~~~~~~~~~~~~~~~~~~~
  '''
  
  # Import python libs
  from __future__ import absolute_import
  import os
  import tempfile
  
  # Import salt libs
  import salt.utils
  
  
  SYS_TMP_DIR = salt.utils.abs_readlink(os.environ.get('TMPDIR', tempfile.gettempdir()))
  # This tempdir path is defined on tests.integration.__init__
  TMP = os.path.join(SYS_TMP_DIR, 'salt-tests-tmpdir')
  
  
  def get_salt_temp_dir():
      return TMP
  
  def get_salt_temp_dir_for_path(*path):
      return os.path.join(TMP, *path)
  
  
  def get_sys_temp_dir_for_path(*path):
      return os.path.join(SYS_TMP_DIR, *path)
  
subject: use system tmpdir