Exemplo n.º 1
0
def _get_input_replace_map():
    # order matters - source_path is build_path's subdir
    d = collections.OrderedDict()
    d[ytc.source_path()] = get_yt_sandbox_path('env/source_path')
    d[ytc.data_path()] = get_yt_sandbox_path('env/data_path')
    # yatest.common.binary_path() based on build_path()
    d[ytc.build_path()] = get_yt_sandbox_path('env/build_path')
    return d
Exemplo n.º 2
0
def _get_input_replace_map():
    tmpdir = ytc.misc.first(os.environ.get(var) for var in ['TMPDIR', 'TEMP', 'TMP']) or '/tmp'
    # order matters - source_path is build_path's subdir
    d = collections.OrderedDict()
    d[ytc.source_path()] = 'env/source_path'
    d[ytc.data_path()] = 'env/data_path'
    # yatest.common.binary_path() based on build_path()
    d[ytc.build_path()] = 'env/build_path'
    d[tmpdir] = 'env/tempdir'
    return d