def METHOD_NAME(qemu: boot_cheribsd.CheriBSDInstance, args: argparse.Namespace) -> bool:
    boot_cheribsd.info("Running QtWebkit tests")
    try:
        # Check that jsc + dumprendertree work
        qemu.checked_run("/tmp/jsc --help", timeout=1200)
        # Run a simple javascript loop
        qemu.checked_run("/tmp/jsc -e 'for (i = 0; i < 10; i++) print(1 + i);'", timeout=1200)
        qemu.checked_run("/tmp/DumpRenderTree -v /tmp/helloworld.html", timeout=1800)
        qemu.checked_run("/tmp/DumpRenderTree -p --stdout /build/hello.png /tmp/helloworld.html", timeout=1800)
        if not args.smoketest:
            qemu.checked_run(
                "/source/Tools/Scripts/run-layout-jsc -j /tmp/jsc -t "
                "/source/LayoutTests -r /build/results -x /build/results.xml",
                timeout=None,
            )
        return True
    finally:
        tests_xml_path = Path(args.build_dir, "results.xml")
        try:
            if not args.smoketest and tests_xml_path.exists():
                # Process junit xml file with junitparser to update the number of tests, failures, total time, etc.
                xml = junitparser.JUnitXml.fromfile(str(tests_xml_path))
                xml.update_statistics()
                xml.write()
        except Exception as e:
            boot_cheribsd.failure("Could not update JUnit XML", tests_xml_path, ": ", e, exit=False)
            return False