Skip to content

Commit 3ed3d71

Browse files
author
Vasileios Karakasis
committed
Fix unit test failure on Kesch
1 parent 5e6cef4 commit 3ed3d71

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

unittests/test_cli.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,16 @@ def test_check_submit_success(self):
148148
self.local = False
149149
self.system = partition.fullname
150150

151-
# pick up the programming environment of the partition
152-
self.environs = [partition.environs[0].name]
151+
# Pick up the programming environment of the partition
152+
# Prepend ^ and append $ so as to much exactly the given name
153+
self.environs = ['^' + partition.environs[0].name + '$']
153154

154155
returncode, stdout, _ = self._run_reframe()
155156
self.assertNotIn('FAILED', stdout)
156157
self.assertIn('PASSED', stdout)
158+
159+
# Assert that we have run only one test case
160+
self.assertIn('Ran 1 test case(s)', stdout)
157161
self.assertEqual(0, returncode)
158162

159163
def test_check_failure(self):

0 commit comments

Comments
 (0)