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
4 changes: 0 additions & 4 deletions docs/manpage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,6 @@ Options controlling ReFrame execution

Skip sanity checking phase.

.. option:: --strict

Enforce strict performance checking, even if a performance test is marked as not performance critical by having set its :attr:`strict_check` attribute to :class:`False`.


----------------------------------
Options controlling job submission
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial_tips_tricks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ The following configuration defines an execution mode named ``maintenance`` and
'options': [
'--unload-module=reframe',
'--exec-policy=async',
'--strict',
'-S strict_check=1',
'--output=/path/to/$USER/regression/maintenance',
'--perflogdir=/path/to/$USER/regression/maintenance/logs',
'--stage=$SCRATCH/regression/maintenance/stage',
Expand Down
5 changes: 0 additions & 5 deletions reframe/frontend/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,6 @@ def main():
'--skip-system-check', action='store_true',
help='Skip system check'
)
run_options.add_argument(
'--strict', action='store_true',
help='Enforce strict performance checking'
)

# Environment options
env_options.add_argument(
Expand Down Expand Up @@ -1238,7 +1234,6 @@ def module_unuse(*paths):
printer.error("unknown execution policy `%s': Exiting...")
sys.exit(1)

exec_policy.strict_check = options.strict
exec_policy.skip_sanity_check = options.skip_sanity_check
exec_policy.skip_performance_check = options.skip_performance_check
exec_policy.keep_stage_files = site_config.get(
Expand Down
4 changes: 0 additions & 4 deletions reframe/frontend/executors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,6 @@ def __init__(self):
self.keep_stage_files = False
self.only_environs = None
self.printer = None
self.strict_check = False

# Local scheduler for running forced local jobs
self.local_scheduler = LocalJobScheduler()
Expand All @@ -613,6 +612,3 @@ def exit(self):
@abc.abstractmethod
def runcase(self, case):
'''Run a test case.'''

if self.strict_check:
case.check.strict_check = True
7 changes: 5 additions & 2 deletions unittests/test_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,11 @@ def test_runall_maxfail(make_runner, make_cases, common_exec_ctx):

def test_strict_performance_check(make_runner, make_cases, common_exec_ctx):
runner = make_runner()
runner.policy.strict_check = True
runner.runall(make_cases())
cases = make_cases()
for c in cases:
c.check.strict_check = True

runner.runall(cases)
stats = runner.stats
assert 9 == stats.num_cases()
assert_runall(runner)
Expand Down