def run(self): """ """ tap.plan(len(self.testcases)) for t in self.testcases: tap.diag("Running '%s'" % t.testname) t.load() t.generate(self.pacman) t.run(self.pacman) tap.diag("==> Checking rules") tap.todo = t.expectfailure tap.subtest(lambda: t.check(), t.description)
def run(self): """ """ for testcase in self.testcases: t = pmtest.pmtest(testcase, self.root, self.config) t.load() if t.skipall: tap.skip_all("skipping %s (%s)" % (t.description, t.skipall)) else: tap.plan(1) tap.diag("Running '%s'" % t.testname) t.generate(self.pacman) t.run(self.pacman) tap.diag("==> Checking rules") tap.todo = t.expectfailure tap.subtest(lambda: t.check(), t.description)
def run(self): """ """ for testcase in self.testcases: t = pmtest.pmtest(testcase, self.root, self.config) t.load() if t.skipall: tap.skip_all("skipping %s (%s)" % (t.description, t.skipall)) else: tap.plan(1) tap.diag("Running '%s'" % t.testname) t.generate(self.pacman) t.run(self.pacman) tap.diag("==> Checking rules") # When running under meson, we don't emit 'todo' in the plan and instead # handle expected failures in the test() objects. This really should be # fixed in meson: # https://github.com/mesonbuild/meson/issues/2923#issuecomment-614647076 tap.todo = (t.expectfailure and not 'RUNNING_UNDER_MESON' in os.environ) tap.subtest(lambda: t.check(), t.description)