@@ -420,7 +420,14 @@ def test_perflogdir_from_env(run_reframe, tmp_path, monkeypatch):
420420 'default' / 'PerformanceFailureCheck.log' )
421421
422422
423- def test_performance_report (run_reframe , run_action ):
423+ @pytest .fixture (params = ['storage=yes' , 'storage=no' ])
424+ def storage_enabled (request , monkeypatch ):
425+ value = request .param .split ('=' )[1 ]
426+ monkeypatch .setenv ('RFM_ENABLE_RESULTS_STORAGE' , value )
427+ return value == 'yes'
428+
429+
430+ def test_performance_report (run_reframe , run_action , storage_enabled ):
424431 returncode , stdout , stderr = run_reframe (
425432 checkpath = ['unittests/resources/checks/frontend_checks.py' ],
426433 more_options = ['-n' , '^PerformanceFailureCheck' ,
@@ -433,6 +440,9 @@ def test_performance_report(run_reframe, run_action):
433440 else :
434441 assert returncode == 0
435442
443+ if run_action != 'dry_run' :
444+ assert 'PERFORMANCE REPORT' in stdout
445+
436446 assert 'Traceback' not in stdout
437447 assert 'Traceback' not in stderr
438448
@@ -1269,7 +1279,8 @@ def assert_no_crash(returncode, stdout, stderr, exitcode=0):
12691279 return returncode , stdout , stderr
12701280
12711281
1272- def test_storage_options (run_reframe , tmp_path , table_format ):
1282+ def test_storage_options (run_reframe , tmp_path , table_format , monkeypatch ):
1283+ monkeypatch .setenv ('RFM_ENABLE_RESULTS_STORAGE' , 'yes' )
12731284 run_reframe2 = functools .partial (
12741285 run_reframe ,
12751286 checkpath = ['unittests/resources/checks/frontend_checks.py' ],
@@ -1335,8 +1346,7 @@ def test_storage_options(run_reframe, tmp_path, table_format):
13351346 '--describe-stored-testcases=now-1d:now' ,
13361347 '--list-stored-sessions' ,
13371348 '--list-stored-testcases=now-1d:now/mean:/' ,
1338- '--performance-compare=now-1d:now/now-1d/mean:/' ,
1339- '--performance-report=now-1d:now/mean:/'
1349+ '--performance-compare=now-1d:now/now-1d/mean:/'
13401350])
13411351def storage_option (request ):
13421352 return request .param
@@ -1359,7 +1369,8 @@ def test_disabled_results_storage(run_reframe, storage_option, monkeypatch):
13591369 assert 'requires results storage' in stdout
13601370
13611371
1362- def test_session_annotations (run_reframe ):
1372+ def test_session_annotations (run_reframe , monkeypatch ):
1373+ monkeypatch .setenv ('RFM_ENABLE_RESULTS_STORAGE' , 'yes' )
13631374 assert_no_crash (* run_reframe (
13641375 checkpath = ['unittests/resources/checks/frontend_checks.py' ],
13651376 action = '-r' ,
@@ -1373,13 +1384,14 @@ def test_session_annotations(run_reframe):
13731384 assert text in stdout
13741385
13751386
1376- def test_performance_compare (run_reframe , table_format ):
1387+ def test_performance_compare (run_reframe , table_format , monkeypatch ):
13771388 def assert_no_crash (returncode , stdout , stderr , exitcode = 0 ):
13781389 assert returncode == exitcode
13791390 assert 'Traceback' not in stdout
13801391 assert 'Traceback' not in stderr
13811392 return returncode , stdout , stderr
13821393
1394+ monkeypatch .setenv ('RFM_ENABLE_RESULTS_STORAGE' , 'yes' )
13831395 run_reframe2 = functools .partial (
13841396 run_reframe ,
13851397 checkpath = ['unittests/resources/checks/frontend_checks.py' ],
0 commit comments