From bb01b5d6ba57a8cbfc11e6230cdc4015b95ea8bf Mon Sep 17 00:00:00 2001 From: mio Date: Mon, 25 Jan 2021 20:58:30 +0800 Subject: [PATCH] Fix test_qltool --- tests/test_qltool.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_qltool.py b/tests/test_qltool.py index c6d060df..2aea9850 100644 --- a/tests/test_qltool.py +++ b/tests/test_qltool.py @@ -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)