from pathlib import Path


def read_settings_file(current_test_path: Path, test_id: str):
    """Read settings for the given test"""
    settings_file = current_test_path / f'{test_id}-settings.txt'
    settings = {}
    with open(settings_file) as f:
        for line in f:
            if line != '\n':
                (key, val) = line.split(':')
                settings[key] = val
    return settings