INNER CODE UNIT · Python

run

usnistgov/OSCAL · src/specifications/profile-resolution/spec-tester.py:321

    def run(self, command, do_cleanup=True) -> bool:
        driver = Driver(command, self.tests_workdir, logger=self.logger)

        suite_pass = True

        try:
            for test in self.tests:
                test_info = f"requirement({test['section_id']}/{test['requirement_id']})"
                self.logger.info(f"{Colors.BOLD}{test_info}{Colors.END}")
                if self._run_test(driver, test, indent=1):
                    self.logger.info(
                        f"{Colors.BOLD}{Colors.GREEN}{test_info}... PASS{Colors.END}")
                else:
                    self.logger.error(
                        f"{Colors.BOLD}{Colors.RED}{test_info}... FAIL{Colors.END}")
                    suite_pass = False
        finally:
            if do_cleanup:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…