mirror of
https://github.com/xemu-project/xemu-test.git
synced 2024-11-26 19:30:30 +00:00
Switch from .ini to .toml to support xemu 7.x
This commit is contained in:
parent
d6e9f8a565
commit
93a4f00834
@ -116,16 +116,22 @@ class TestBase:
|
|||||||
self.setup_hdd_files(Fatx(self.hdd_path))
|
self.setup_hdd_files(Fatx(self.hdd_path))
|
||||||
|
|
||||||
def _prepare_config(self):
|
def _prepare_config(self):
|
||||||
config = ( '[system]\n'
|
config = ( '[general]\n'
|
||||||
f'flash_path = {self.flash_path}\n'
|
'show_welcome = false\n'
|
||||||
f'bootrom_path = {self.mcpx_path}\n'
|
'skip_boot_anim = true\n'
|
||||||
f'hdd_path = {self.hdd_path}\n'
|
'[general.updates]\n'
|
||||||
'shortanim = true\n'
|
'check = false\n'
|
||||||
'[misc]\n'
|
'[net]\n'
|
||||||
'check_for_update = false\n'
|
'enable = false\n'
|
||||||
|
'[sys]\n'
|
||||||
|
'mem_limit = \'64\'\n'
|
||||||
|
'[sys.files]\n'
|
||||||
|
f'bootrom_path = \'{self.mcpx_path}\'\n'
|
||||||
|
f'flashrom_path = \'{self.flash_path}\'\n'
|
||||||
|
f'hdd_path = \'{self.hdd_path}\'\n'
|
||||||
)
|
)
|
||||||
log.info('Prepared config file:\n%s', config)
|
log.info('Prepared config file:\n%s', config)
|
||||||
with open('xemu.ini', 'w') as f:
|
with open('xemu.toml', 'w') as f:
|
||||||
f.write(config)
|
f.write(config)
|
||||||
|
|
||||||
def _launch_video_capture(self):
|
def _launch_video_capture(self):
|
||||||
@ -162,9 +168,9 @@ class TestBase:
|
|||||||
def _launch_xemu(self):
|
def _launch_xemu(self):
|
||||||
|
|
||||||
if platform.system() == 'Windows':
|
if platform.system() == 'Windows':
|
||||||
c = [self.test_env.xemu_path, '-config_path', './xemu.ini', '-dvd_path', self.iso_path]
|
c = [self.test_env.xemu_path, '-config_path', './xemu.toml', '-dvd_path', self.iso_path]
|
||||||
else:
|
else:
|
||||||
c = [self.test_env.xemu_path, '-config_path', './xemu.ini', '-dvd_path', self.iso_path]
|
c = [self.test_env.xemu_path, '-config_path', './xemu.toml', '-dvd_path', self.iso_path]
|
||||||
if not self.test_env.disable_fullscreen:
|
if not self.test_env.disable_fullscreen:
|
||||||
c.append('-full-screen')
|
c.append('-full-screen')
|
||||||
log.info('Launching xemu with command %s from directory %s', repr(c), os.getcwd())
|
log.info('Launching xemu with command %s from directory %s', repr(c), os.getcwd())
|
||||||
|
Loading…
Reference in New Issue
Block a user