mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
Fix test_qltool
This commit is contained in:
@@ -9,6 +9,7 @@ sys.path.append("..")
|
||||
from qiling import *
|
||||
from qiling.exception import *
|
||||
|
||||
import os
|
||||
|
||||
class Qltool_Test(unittest.TestCase):
|
||||
def test_qltool_exec_args(self):
|
||||
@@ -26,6 +27,7 @@ class Qltool_Test(unittest.TestCase):
|
||||
raise RuntimeError("command '{}' return with error (code {}): {}".format(e.cmd, e.returncode, e.output))
|
||||
|
||||
def test_qltool_coverage(self):
|
||||
os.makedirs("./log_test", exist_ok=True)
|
||||
create = [sys.executable, '../qltool', 'run', '-f','../examples/rootfs/x8664_efi/bin/TcgPlatformSetupPolicy','--rootfs', '../examples/rootfs/x8664_efi','--coverage-format', 'drcov', '--coverage-file', 'log_test/TcgPlatformSetupPolicy']
|
||||
try:
|
||||
subprocess.check_output(create,stderr=subprocess.STDOUT)
|
||||
|
||||
Reference in New Issue
Block a user