

@pytest.mark.parametrize('name,term', [('jip.cluster.Slurm', '%j'), ('jip.cluster.PBS', '$PBS_JOBID'), ('jip.cluster.LSF', '%J'), ('jip.cluster.SGE', '$JOB_ID')])
def test_resolving_log_file_names(name, term):
    fakeBinDir = createFakeBinaries()
    Job = namedtuple('Job', 'job_id')
    j = Job(1)
    cluster = cl.get(name)
    assert (cluster.resolve_log(j, ('log-%s' % term)) == 'log-1')
    removeFakeBinaries(fakeBinDir)

dataset/ETHPy150Open thasso/pyjip/test/test_cluster.py test_resolving_log_file_names/original