@@ -574,7 +574,7 @@ def test_list_tags(run_reframe):
574574 assert returncode == 0
575575
576576
577- def test_filtering_multiple_criteria (run_reframe ):
577+ def test_filtering_multiple_criteria_name (run_reframe ):
578578 returncode , stdout , stderr = run_reframe (
579579 checkpath = ['unittests/resources/checks' ],
580580 action = 'list' ,
@@ -586,6 +586,30 @@ def test_filtering_multiple_criteria(run_reframe):
586586 assert returncode == 0
587587
588588
589+ def test_filtering_multiple_criteria_hash (run_reframe ):
590+ returncode , stdout , stderr = run_reframe (
591+ checkpath = ['unittests/resources/checks' ],
592+ action = 'list' ,
593+ more_options = ['-t' , 'foo' , '-n' , '/2b3e4546' ]
594+ )
595+ assert 'Traceback' not in stdout
596+ assert 'Traceback' not in stderr
597+ assert 'Found 1 check(s)' in stdout
598+ assert returncode == 0
599+
600+
601+ def test_filtering_exclude_hash (run_reframe ):
602+ returncode , stdout , stderr = run_reframe (
603+ checkpath = ['unittests/resources/checks' ],
604+ action = 'list' ,
605+ more_options = ['-x' , '/2b3e4546' ]
606+ )
607+ assert 'Traceback' not in stdout
608+ assert 'Traceback' not in stderr
609+ assert 'Found 8 check(s)' in stdout
610+ assert returncode == 0
611+
612+
589613def test_show_config_all (run_reframe ):
590614 # Just make sure that this option does not make the frontend crash
591615 returncode , stdout , stderr = run_reframe (
0 commit comments