Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions reframe/frontend/executors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ def run_check(self, c, p, e):
if self.strict_check:
c.strict_check = True

if self.force_local:
c.local = True

@abc.abstractmethod
def getstats(self):
"""Return test case statistics of the run."""
8 changes: 8 additions & 0 deletions unittests/test_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ def test_strict_performance_check(self):
self.assertEqual(1, self._num_failures_stage('sanity'))
self.assertEqual(2, self._num_failures_stage('performance'))

def test_force_local_execution(self):
self.runner.policy.force_local = True
self.runner.runall([HelloTest(system=self.system, resources=self.resources)],
self.system)
stats = self.runner.stats
for t in stats.get_tasks():
self.assertTrue(t.check.local)

def test_kbd_interrupt_within_test(self):
check = KeyboardInterruptCheck(system=self.system,
resources=self.resources)
Expand Down