From 8515a27bd6a5ad5eebb477d9c8ecbe77a3eb0a9a Mon Sep 17 00:00:00 2001 From: elicn Date: Wed, 6 Mar 2024 14:53:34 +0200 Subject: [PATCH] Adjust existing code --- qltool | 2 +- tests/test_elf.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qltool b/qltool index b488e0901..1956fd657 100755 --- a/qltool +++ b/qltool @@ -267,7 +267,7 @@ def run(): 'profile': options.profile, 'console': options.console, 'filter': options.filter, - 'log_file': options.log_file, + 'log_devices': options.log_file or [options.log_file], 'log_plain': options.log_plain, 'multithread': options.multithread, 'libcache': options.libcache diff --git a/tests/test_elf.py b/tests/test_elf.py index 5f2ce0719..7977e3f11 100644 --- a/tests/test_elf.py +++ b/tests/test_elf.py @@ -218,7 +218,7 @@ def test_elf_linux_x8664_static(self): def test_elf_linux_x86(self): filename = 'test.qlog' - ql = Qiling(["../examples/rootfs/x86_linux/bin/x86_hello"], "../examples/rootfs/x86_linux", verbose=QL_VERBOSE.DEBUG, log_file=filename) + ql = Qiling(["../examples/rootfs/x86_linux/bin/x86_hello"], "../examples/rootfs/x86_linux", verbose=QL_VERBOSE.DEBUG, log_devices=[filename]) ql.run() os.remove(filename)