Skip to content

Commit d058575

Browse files
author
teojgo
authored
Merge branch 'master' into documentation/add_sc_hpac_slides
2 parents ed6caae + 3b8ee69 commit d058575

File tree

4 files changed

+24
-23
lines changed

4 files changed

+24
-23
lines changed

unittests/resources/frontend_checks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ def __init__(self, run_to_pass, filename, **kwargs):
166166
def _get_checks(**kwargs):
167167
return [BadSetupCheck(**kwargs),
168168
BadSetupCheckEarly(**kwargs),
169-
KeyboardInterruptCheck(phase='setup', **kwargs),
170169
NoSystemCheck(**kwargs),
171170
NoPrgEnvCheck(**kwargs),
172171
SanityFailureCheck(**kwargs),

unittests/test_cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,10 @@ def test_check_setup_failure(self):
177177
self.assertIn('FAILED', stdout)
178178
self.assertNotEqual(returncode, 0)
179179

180-
def test_check_kbd_interrupt(self):
181-
self.checkpath = ['unittests/resources/frontend_checks.py']
180+
# FIXME: The following test is temporarily disabled. It should be
181+
# re-enabled with the unit tests refactoring.
182+
def _test_check_kbd_interrupt(self):
183+
self.checkpath = ['unittests/resources/kbd_interrupt_check.py']
182184
self.more_options = ['-t', 'KeyboardInterruptCheck']
183185
self.local = False
184186

unittests/test_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ def test_load_recursive(self):
4141
'unittests/resources', recurse=True,
4242
system=self.system, resources=self.resources
4343
)
44-
self.assertEqual(12, len(checks))
44+
self.assertEqual(11, len(checks))
4545

4646
def test_load_all(self):
4747
checks = self.loader_with_path.load_all(system=self.system,
4848
resources=self.resources)
49-
self.assertEqual(11, len(checks))
49+
self.assertEqual(10, len(checks))
5050

5151
def test_load_all_with_prefix(self):
5252
checks = self.loader_with_prefix.load_all(system=self.system,

unittests/test_policies.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ def test_runall(self):
5959
self.runner.runall(self.checks, self.system)
6060

6161
stats = self.runner.stats
62-
self.assertEqual(8, stats.num_cases())
63-
self.assertEqual(5, stats.num_failures())
64-
self.assertEqual(3, self._num_failures_stage('setup'))
62+
self.assertEqual(7, stats.num_cases())
63+
self.assertEqual(4, stats.num_failures())
64+
self.assertEqual(2, self._num_failures_stage('setup'))
6565
self.assertEqual(1, self._num_failures_stage('sanity'))
6666
self.assertEqual(1, self._num_failures_stage('performance'))
6767

@@ -70,9 +70,9 @@ def test_runall_skip_system_check(self):
7070
self.runner.runall(self.checks, self.system)
7171

7272
stats = self.runner.stats
73-
self.assertEqual(9, stats.num_cases())
74-
self.assertEqual(5, stats.num_failures())
75-
self.assertEqual(3, self._num_failures_stage('setup'))
73+
self.assertEqual(8, stats.num_cases())
74+
self.assertEqual(4, stats.num_failures())
75+
self.assertEqual(2, self._num_failures_stage('setup'))
7676
self.assertEqual(1, self._num_failures_stage('sanity'))
7777
self.assertEqual(1, self._num_failures_stage('performance'))
7878

@@ -81,9 +81,9 @@ def test_runall_skip_prgenv_check(self):
8181
self.runner.runall(self.checks, self.system)
8282

8383
stats = self.runner.stats
84-
self.assertEqual(9, stats.num_cases())
85-
self.assertEqual(5, stats.num_failures())
86-
self.assertEqual(3, self._num_failures_stage('setup'))
84+
self.assertEqual(8, stats.num_cases())
85+
self.assertEqual(4, stats.num_failures())
86+
self.assertEqual(2, self._num_failures_stage('setup'))
8787
self.assertEqual(1, self._num_failures_stage('sanity'))
8888
self.assertEqual(1, self._num_failures_stage('performance'))
8989

@@ -92,9 +92,9 @@ def test_runall_skip_sanity_check(self):
9292
self.runner.runall(self.checks, self.system)
9393

9494
stats = self.runner.stats
95-
self.assertEqual(8, stats.num_cases())
96-
self.assertEqual(4, stats.num_failures())
97-
self.assertEqual(3, self._num_failures_stage('setup'))
95+
self.assertEqual(7, stats.num_cases())
96+
self.assertEqual(3, stats.num_failures())
97+
self.assertEqual(2, self._num_failures_stage('setup'))
9898
self.assertEqual(0, self._num_failures_stage('sanity'))
9999
self.assertEqual(1, self._num_failures_stage('performance'))
100100

@@ -103,9 +103,9 @@ def test_runall_skip_performance_check(self):
103103
self.runner.runall(self.checks, self.system)
104104

105105
stats = self.runner.stats
106-
self.assertEqual(8, stats.num_cases())
107-
self.assertEqual(4, stats.num_failures())
108-
self.assertEqual(3, self._num_failures_stage('setup'))
106+
self.assertEqual(7, stats.num_cases())
107+
self.assertEqual(3, stats.num_failures())
108+
self.assertEqual(2, self._num_failures_stage('setup'))
109109
self.assertEqual(1, self._num_failures_stage('sanity'))
110110
self.assertEqual(0, self._num_failures_stage('performance'))
111111

@@ -114,9 +114,9 @@ def test_strict_performance_check(self):
114114
self.runner.runall(self.checks, self.system)
115115

116116
stats = self.runner.stats
117-
self.assertEqual(8, stats.num_cases())
118-
self.assertEqual(6, stats.num_failures())
119-
self.assertEqual(3, self._num_failures_stage('setup'))
117+
self.assertEqual(7, stats.num_cases())
118+
self.assertEqual(5, stats.num_failures())
119+
self.assertEqual(2, self._num_failures_stage('setup'))
120120
self.assertEqual(1, self._num_failures_stage('sanity'))
121121
self.assertEqual(2, self._num_failures_stage('performance'))
122122

0 commit comments

Comments
 (0)