Fix test_qltool

This commit is contained in:
mio
2021-01-25 20:58:30 +08:00
parent 09476f70c3
commit bb01b5d6ba
+2
View File
@@ -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)