1 # SPDX-License-Identifier: GPL-2.0-or-later
3 """Fixture for semihosting command test
9 @pytest.fixture(scope='session')
10 def semihosting_data(u_boot_config):
11 """Set up a file system to be used in semihosting tests
14 u_boot_config -- U-Boot configuration.
16 image_path = u_boot_config.persistent_data_dir + '/semihosting.txt'
18 with open(image_path, 'w', encoding = 'utf-8') as file:
19 file.write('Das U-Boot\n')