mirror of
https://github.com/xemu-project/xemu-test.git
synced 2024-11-23 01:49:40 +00:00
Save log output to results dir
This commit is contained in:
parent
35f22988ec
commit
d6e9f8a565
@ -7,7 +7,6 @@ import sys
|
||||
|
||||
import xemutest
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
log = logging.getLogger(__file__)
|
||||
|
||||
|
||||
@ -38,6 +37,11 @@ def main():
|
||||
tests.append((test_name, test_class))
|
||||
|
||||
results_root = os.path.abspath(os.path.expanduser(args.results))
|
||||
os.makedirs(results_root, exist_ok=True)
|
||||
|
||||
log_file_name = os.path.join(results_root, "xemutest.log")
|
||||
logging.basicConfig(filename=log_file_name, filemode='w', level=logging.INFO)
|
||||
|
||||
if args.data:
|
||||
test_data_root = os.path.expanduser(args.data)
|
||||
else:
|
||||
|
@ -219,7 +219,7 @@ class TestBase:
|
||||
self._terminate_video_capture()
|
||||
|
||||
def _mount_hdd(self):
|
||||
log.info('Mounting HDD image')
|
||||
log.info(f'Mounting HDD image {self.hdd_path} at {self.mount_path}')
|
||||
if os.path.exists(self.mount_path):
|
||||
shutil.rmtree(self.mount_path)
|
||||
os.makedirs(self.mount_path, exist_ok=True)
|
||||
|
Loading…
Reference in New Issue
Block a user